airflow-unicore-integration 0.1.10__py3-none-any.whl → 0.1.11__py3-none-any.whl
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.
- airflow_unicore_integration/util/job.py +9 -5
- {airflow_unicore_integration-0.1.10.dist-info → airflow_unicore_integration-0.1.11.dist-info}/METADATA +1 -1
- {airflow_unicore_integration-0.1.10.dist-info → airflow_unicore_integration-0.1.11.dist-info}/RECORD +7 -7
- {airflow_unicore_integration-0.1.10.dist-info → airflow_unicore_integration-0.1.11.dist-info}/WHEEL +0 -0
- {airflow_unicore_integration-0.1.10.dist-info → airflow_unicore_integration-0.1.11.dist-info}/entry_points.txt +0 -0
- {airflow_unicore_integration-0.1.10.dist-info → airflow_unicore_integration-0.1.11.dist-info}/licenses/LICENSE +0 -0
- {airflow_unicore_integration-0.1.10.dist-info → airflow_unicore_integration-0.1.11.dist-info}/top_level.txt +0 -0
|
@@ -105,7 +105,6 @@ class NaiveJobDescriptionGenerator(JobDescriptionGenerator):
|
|
|
105
105
|
# "AIRFLOW__CORE__DAGS_FOLDER": "./",
|
|
106
106
|
"AIRFLOW__LOGGING__LOGGING_LEVEL": "DEBUG",
|
|
107
107
|
"AIRFLOW__CORE__EXECUTOR": "LocalExecutor,airflow_unicore_integration.executors.unicore_executor.UnicoreExecutor",
|
|
108
|
-
"AIRFLOW__DAG_PROCESSOR__DAG_BUNDLE_STORAGE_PATH": f"{tmp_dir}/{workload.ti.id}/dagbundle",
|
|
109
108
|
}
|
|
110
109
|
|
|
111
110
|
# build filecontent string for importing in the job | this is needed to avoid confusing nested quotes and trying to escape them properly when using unicore env vars directly
|
|
@@ -136,9 +135,14 @@ class NaiveJobDescriptionGenerator(JobDescriptionGenerator):
|
|
|
136
135
|
):
|
|
137
136
|
git_hook = GitHook(conn_id_to_transmit)
|
|
138
137
|
git_remote_url = git_hook.repo_url
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
138
|
+
git_dir_prefix = f"{tmp_dir}/{workload.ti.dag_id}/{workload.ti.task_id}/{workload.ti.run_id}/{workload.ti.try_number}"
|
|
139
|
+
git_local_url = f"{git_dir_prefix}/dagmirror"
|
|
140
|
+
dag_bundle_path = f"{git_dir_prefix}/dagbundle"
|
|
141
|
+
# add precommand to clone repo on login node
|
|
142
|
+
git_precommand = f". {python_env} && mkdir -p {git_local_url} && mkdir -p {dag_bundle_path} && git clone {git_remote_url} {git_local_url}"
|
|
143
|
+
job_descr_dict["Environment"][
|
|
144
|
+
"AIRFLOW__DAG_PROCESSOR__DAG_BUNDLE_STORAGE_PATH"
|
|
145
|
+
] = f"{dag_bundle_path}"
|
|
142
146
|
logger.info(f"git precommand is {git_precommand}")
|
|
143
147
|
user_added_pre_commands.append(git_precommand)
|
|
144
148
|
# add connection to local clone to env of job
|
|
@@ -150,7 +154,7 @@ class NaiveJobDescriptionGenerator(JobDescriptionGenerator):
|
|
|
150
154
|
)
|
|
151
155
|
logger.info(f"connection is '{airflow_conn_string}'")
|
|
152
156
|
# add cleanup of local git repo to job description
|
|
153
|
-
git_cleanup_command = f"rm -r {
|
|
157
|
+
git_cleanup_command = f"rm -r {git_dir_prefix}"
|
|
154
158
|
logger.info(f"git cleanup is {git_cleanup_command}")
|
|
155
159
|
user_added_post_commands.append(git_cleanup_command)
|
|
156
160
|
|
{airflow_unicore_integration-0.1.10.dist-info → airflow_unicore_integration-0.1.11.dist-info}/RECORD
RENAMED
|
@@ -7,11 +7,11 @@ airflow_unicore_integration/hooks/unicore_hooks.py,sha256=JjcjogWtN1xveagpkraQuY
|
|
|
7
7
|
airflow_unicore_integration/operators/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
8
8
|
airflow_unicore_integration/operators/unicore_operators.py,sha256=xYX1t_QzjpqHZDoEu6jJNNXVmBEnjIlApFWvgYoYoB0,16790
|
|
9
9
|
airflow_unicore_integration/policies/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
10
|
-
airflow_unicore_integration/util/job.py,sha256=
|
|
10
|
+
airflow_unicore_integration/util/job.py,sha256=IsVjDiq3Jj-Eky0mET3awC3yBloHR9Duvm1KFiAPKpU,10264
|
|
11
11
|
airflow_unicore_integration/util/launch_script_content.py,sha256=42_aFpaCMmvFmmUxQDGcudkleX1YSK_yYWE8T41NOy0,2915
|
|
12
|
-
airflow_unicore_integration-0.1.
|
|
13
|
-
airflow_unicore_integration-0.1.
|
|
14
|
-
airflow_unicore_integration-0.1.
|
|
15
|
-
airflow_unicore_integration-0.1.
|
|
16
|
-
airflow_unicore_integration-0.1.
|
|
17
|
-
airflow_unicore_integration-0.1.
|
|
12
|
+
airflow_unicore_integration-0.1.11.dist-info/licenses/LICENSE,sha256=hZ5ouAedeNr8ClHrQE-RLsgMsARcmv3kSZz7tE2BTJE,1526
|
|
13
|
+
airflow_unicore_integration-0.1.11.dist-info/METADATA,sha256=a6vLdzCg5UYaxOIsKCPfxQPDZ-sBg6rwJQWCVRoupWM,11189
|
|
14
|
+
airflow_unicore_integration-0.1.11.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
15
|
+
airflow_unicore_integration-0.1.11.dist-info/entry_points.txt,sha256=PzEfCLYLSawjiYR-HNBzw8-YGfJxs1nPBULevgBQjoY,147
|
|
16
|
+
airflow_unicore_integration-0.1.11.dist-info/top_level.txt,sha256=j45X-uIuOk3oL78iwlpHakMWtUkg__B7zUlJLwmZx6w,28
|
|
17
|
+
airflow_unicore_integration-0.1.11.dist-info/RECORD,,
|
{airflow_unicore_integration-0.1.10.dist-info → airflow_unicore_integration-0.1.11.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|