codeflowhub 0.3.0__tar.gz → 0.4.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {codeflowhub-0.3.0 → codeflowhub-0.4.0}/PKG-INFO +1 -1
- {codeflowhub-0.3.0 → codeflowhub-0.4.0}/codeflowhub/flow.py +7 -3
- {codeflowhub-0.3.0 → codeflowhub-0.4.0}/codeflowhub.egg-info/PKG-INFO +1 -1
- {codeflowhub-0.3.0 → codeflowhub-0.4.0}/setup.py +1 -1
- {codeflowhub-0.3.0 → codeflowhub-0.4.0}/LICENSE +0 -0
- {codeflowhub-0.3.0 → codeflowhub-0.4.0}/README.md +0 -0
- {codeflowhub-0.3.0 → codeflowhub-0.4.0}/codeflowhub/__init__.py +0 -0
- {codeflowhub-0.3.0 → codeflowhub-0.4.0}/codeflowhub/action.py +0 -0
- {codeflowhub-0.3.0 → codeflowhub-0.4.0}/codeflowhub/airflow/__init__.py +0 -0
- {codeflowhub-0.3.0 → codeflowhub-0.4.0}/codeflowhub/airflow/xcom.py +0 -0
- {codeflowhub-0.3.0 → codeflowhub-0.4.0}/codeflowhub/base.py +0 -0
- {codeflowhub-0.3.0 → codeflowhub-0.4.0}/codeflowhub/model.py +0 -0
- {codeflowhub-0.3.0 → codeflowhub-0.4.0}/codeflowhub/service/__init__.py +0 -0
- {codeflowhub-0.3.0 → codeflowhub-0.4.0}/codeflowhub/service/airflow_exporter.py +0 -0
- {codeflowhub-0.3.0 → codeflowhub-0.4.0}/codeflowhub/storage/__init__.py +0 -0
- {codeflowhub-0.3.0 → codeflowhub-0.4.0}/codeflowhub/storage/local_storage.py +0 -0
- {codeflowhub-0.3.0 → codeflowhub-0.4.0}/codeflowhub/storage/s3_storage.py +0 -0
- {codeflowhub-0.3.0 → codeflowhub-0.4.0}/codeflowhub/storage/storage.py +0 -0
- {codeflowhub-0.3.0 → codeflowhub-0.4.0}/codeflowhub/task.py +0 -0
- {codeflowhub-0.3.0 → codeflowhub-0.4.0}/codeflowhub/template/__init__.py +0 -0
- {codeflowhub-0.3.0 → codeflowhub-0.4.0}/codeflowhub/template/analyze_speaker_pkg/__init__.py +0 -0
- {codeflowhub-0.3.0 → codeflowhub-0.4.0}/codeflowhub/template/analyze_speaker_pkg/main.py +0 -0
- {codeflowhub-0.3.0 → codeflowhub-0.4.0}/codeflowhub/template/extract_voice_pkg/__init__.py +0 -0
- {codeflowhub-0.3.0 → codeflowhub-0.4.0}/codeflowhub/template/extract_voice_pkg/main.py +0 -0
- {codeflowhub-0.3.0 → codeflowhub-0.4.0}/codeflowhub/template/read_pdf_pkg/__init__.py +0 -0
- {codeflowhub-0.3.0 → codeflowhub-0.4.0}/codeflowhub/template/read_pdf_pkg/main.py +0 -0
- {codeflowhub-0.3.0 → codeflowhub-0.4.0}/codeflowhub/template/transcript_pkg/__init__.py +0 -0
- {codeflowhub-0.3.0 → codeflowhub-0.4.0}/codeflowhub/template/transcript_pkg/main.py +0 -0
- {codeflowhub-0.3.0 → codeflowhub-0.4.0}/codeflowhub.egg-info/SOURCES.txt +0 -0
- {codeflowhub-0.3.0 → codeflowhub-0.4.0}/codeflowhub.egg-info/dependency_links.txt +0 -0
- {codeflowhub-0.3.0 → codeflowhub-0.4.0}/codeflowhub.egg-info/top_level.txt +0 -0
- {codeflowhub-0.3.0 → codeflowhub-0.4.0}/setup.cfg +0 -0
|
@@ -26,11 +26,13 @@ class FlowDecorator(BaseDecorator):
|
|
|
26
26
|
airflow_connection_id:str # Airflow Connection ID for XCom API fetch
|
|
27
27
|
repo:str # Git repository URL
|
|
28
28
|
path:str # Git repo 내 작업 경로
|
|
29
|
+
export_destination:str # Export 시 생성 파일 저장 디렉토리
|
|
29
30
|
on_failure: 'BaseDecorator' = None # 모든 task의 기본 failure handler
|
|
30
31
|
|
|
31
32
|
def __init__(self, *args, namespace='default', env=None, name=None, description=None, params=None,
|
|
32
33
|
tags=None, annotations=None, service_account_name=None, volumes=None,
|
|
33
|
-
airflow_sidecar_image=None, airflow_connection_id=None, repo=None, path=None,
|
|
34
|
+
airflow_sidecar_image=None, airflow_connection_id=None, repo=None, path=None,
|
|
35
|
+
export_destination='dags', on_failure=None, **kwargs):
|
|
34
36
|
# CLI 속성 먼저 초기화 (init()에서 사용됨)
|
|
35
37
|
self._cli_export = None
|
|
36
38
|
self._cli_job_dir = None
|
|
@@ -51,6 +53,7 @@ class FlowDecorator(BaseDecorator):
|
|
|
51
53
|
self.airflow_connection_id = airflow_connection_id
|
|
52
54
|
self.repo = repo
|
|
53
55
|
self.path = path
|
|
56
|
+
self.export_destination = export_destination or 'dags'
|
|
54
57
|
self.on_failure = on_failure
|
|
55
58
|
|
|
56
59
|
self._initialize_env(env)
|
|
@@ -253,10 +256,11 @@ class FlowDecorator(BaseDecorator):
|
|
|
253
256
|
from datetime import datetime, timedelta
|
|
254
257
|
|
|
255
258
|
flow_id = self.flow_name or self.name
|
|
256
|
-
|
|
259
|
+
dest_dir = self.export_destination or 'dags'
|
|
260
|
+
print(f'🚀 Exporting {flow_id} to Airflow DAG... (destination: {dest_dir})')
|
|
257
261
|
|
|
258
262
|
dag_path = self.export_airflow(
|
|
259
|
-
output_path=f'
|
|
263
|
+
output_path=os.path.join(dest_dir, f'{flow_id}_dag.py'),
|
|
260
264
|
schedule_interval=None,
|
|
261
265
|
start_date=datetime.now(),
|
|
262
266
|
default_args={
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{codeflowhub-0.3.0 → codeflowhub-0.4.0}/codeflowhub/template/analyze_speaker_pkg/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|