airflow-unicore-integration 0.1.0__py3-none-any.whl → 0.1.2__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.
@@ -49,10 +49,12 @@ class NaiveJobDescriptionGenerator(JobDescriptionGenerator):
49
49
  dag_rel_path = str(workload.dag_rel_path)
50
50
  if dag_rel_path.startswith("DAG_FOLDER"):
51
51
  dag_rel_path = dag_rel_path[10:]
52
- local_dag_path = conf.get("core", "DAGS_FOLDER") + "/" + dag_rel_path
52
+ # local_dag_path = conf.get("core", "DAGS_FOLDER") + "/" + dag_rel_path
53
53
  base_url = conf.get("api", "base_url", fallback="/")
54
54
  default_execution_api_server = f"{base_url.rstrip('/')}/execution/"
55
- server = conf.get("core", "execution_api_server_url", fallback=default_execution_api_server)
55
+ server = conf.get(
56
+ "unicore.executor", "execution_api_server_url", fallback=default_execution_api_server
57
+ )
56
58
 
57
59
  # check which python virtualenv to use
58
60
  if user_defined_python_env:
@@ -60,12 +62,12 @@ class NaiveJobDescriptionGenerator(JobDescriptionGenerator):
60
62
  else:
61
63
  python_env = conf.get("unicore.executor", "DEFAULT_ENV")
62
64
  # prepare dag file to be uploaded via unicore
63
- dag_file = open(local_dag_path)
64
- dag_content = dag_file.readlines()
65
- dag_import = {"To": dag_rel_path, "Data": dag_content}
65
+ # dag_file = open(local_dag_path)
66
+ # dag_content = dag_file.readlines()
67
+ # dag_import = {"To": dag_rel_path, "Data": dag_content}
66
68
  worker_script_import = {
67
69
  "To": "run_task_via_supervisor.py",
68
- "From": "https://gist.githubusercontent.com/cboettcher/3f1101a1d1b67e7944d17c02ecd69930/raw/6da9ec16ba598ddda9cf288900498fab5e226788/run_task_via_supervisor.py",
70
+ "From": "https://gist.githubusercontent.com/cboettcher/3f1101a1d1b67e7944d17c02ecd69930/raw/1d90bf38199d8c0adf47a79c8840c3e3ddf57462/run_task_via_supervisor.py",
69
71
  }
70
72
  # start filling the actual job description
71
73
  job_descr_dict["Name"] = f"{key.dag_id} - {key.task_id} - {key.run_id} - {key.try_number}"
@@ -87,7 +89,7 @@ class NaiveJobDescriptionGenerator(JobDescriptionGenerator):
87
89
  job_descr_dict["RunUserPrecommandOnLoginNode"] = (
88
90
  "false" # precommand is activating the python env, this can also be done on compute node right before running the job
89
91
  )
90
- job_descr_dict["Imports"] = [dag_import, worker_script_import]
92
+ job_descr_dict["Imports"] = [worker_script_import]
91
93
  # add user defined options to description
92
94
  if user_added_env:
93
95
  job_descr_dict["Environment"].update(user_added_env)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: airflow-unicore-integration
3
- Version: 0.1.0
3
+ Version: 0.1.2
4
4
  Summary: Running Unicore Jobs from airflow DAGs.
5
5
  Author-email: Christian Böttcher <c.boettcher@fz-juelich.de>
6
6
  License-Expression: BSD-3-Clause
@@ -7,10 +7,10 @@ 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=AqbtV0rOCzvpW_7eqwMuMvUzIn0BDbuZVts-ju49zJE,5868
11
- airflow_unicore_integration-0.1.0.dist-info/licenses/LICENSE,sha256=hZ5ouAedeNr8ClHrQE-RLsgMsARcmv3kSZz7tE2BTJE,1526
12
- airflow_unicore_integration-0.1.0.dist-info/METADATA,sha256=K5ks_88YYhpL8L8s23tNH7l-v0BMQF_MdPydk11NntA,11188
13
- airflow_unicore_integration-0.1.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
14
- airflow_unicore_integration-0.1.0.dist-info/entry_points.txt,sha256=PzEfCLYLSawjiYR-HNBzw8-YGfJxs1nPBULevgBQjoY,147
15
- airflow_unicore_integration-0.1.0.dist-info/top_level.txt,sha256=j45X-uIuOk3oL78iwlpHakMWtUkg__B7zUlJLwmZx6w,28
16
- airflow_unicore_integration-0.1.0.dist-info/RECORD,,
10
+ airflow_unicore_integration/util/job.py,sha256=wN3dR0UEvyv2pP8728POjy1P-w4MZgONgDGBctANjkA,5898
11
+ airflow_unicore_integration-0.1.2.dist-info/licenses/LICENSE,sha256=hZ5ouAedeNr8ClHrQE-RLsgMsARcmv3kSZz7tE2BTJE,1526
12
+ airflow_unicore_integration-0.1.2.dist-info/METADATA,sha256=9iZu8Ql-V311LdbHrUNBDaoD7PSYBMnAJvca0zU2Gbs,11188
13
+ airflow_unicore_integration-0.1.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
14
+ airflow_unicore_integration-0.1.2.dist-info/entry_points.txt,sha256=PzEfCLYLSawjiYR-HNBzw8-YGfJxs1nPBULevgBQjoY,147
15
+ airflow_unicore_integration-0.1.2.dist-info/top_level.txt,sha256=j45X-uIuOk3oL78iwlpHakMWtUkg__B7zUlJLwmZx6w,28
16
+ airflow_unicore_integration-0.1.2.dist-info/RECORD,,