scientiflow-cli 0.4.12__py3-none-any.whl → 0.4.13__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.
- scientiflow_cli/services/executor.py +2 -1
- scientiflow_cli/utils/file_manager.py +2 -5
- {scientiflow_cli-0.4.12.dist-info → scientiflow_cli-0.4.13.dist-info}/METADATA +1 -1
- {scientiflow_cli-0.4.12.dist-info → scientiflow_cli-0.4.13.dist-info}/RECORD +7 -7
- {scientiflow_cli-0.4.12.dist-info → scientiflow_cli-0.4.13.dist-info}/LICENSE.md +0 -0
- {scientiflow_cli-0.4.12.dist-info → scientiflow_cli-0.4.13.dist-info}/WHEEL +0 -0
- {scientiflow_cli-0.4.12.dist-info → scientiflow_cli-0.4.13.dist-info}/entry_points.txt +0 -0
|
@@ -37,6 +37,7 @@ def execute_jobs(job_ids: list[int] = None, parallel: bool = False, is_cloud: bo
|
|
|
37
37
|
if matching_jobs:
|
|
38
38
|
if is_cloud:
|
|
39
39
|
for job in matching_jobs:
|
|
40
|
+
job['project_title'] = job['project']['id'] + '_' + job['project']['project_title']
|
|
40
41
|
if 'server' not in job or job['server'] is None:
|
|
41
42
|
job['server'] = {'base_directory':None}
|
|
42
43
|
job['server']['base_directory'] = get_base_directory()
|
|
@@ -158,7 +159,7 @@ def execute_single_job(job: dict, is_cloud: bool = False) -> None:
|
|
|
158
159
|
if job_status != "running":
|
|
159
160
|
if job["new_job"] == 1:
|
|
160
161
|
# Initialize folders for the project / project_job
|
|
161
|
-
create_job_dirs(job
|
|
162
|
+
create_job_dirs(job)
|
|
162
163
|
|
|
163
164
|
# Fetch the files and folder from the backend
|
|
164
165
|
get_job_files(job)
|
|
@@ -37,12 +37,9 @@ def get_job_files(job: dict) -> None:
|
|
|
37
37
|
|
|
38
38
|
printer.print_success(f"[+] Files extracted to {str(project_dir_name).strip()}")
|
|
39
39
|
|
|
40
|
-
def create_job_dirs(job: dict
|
|
40
|
+
def create_job_dirs(job: dict) -> None:
|
|
41
41
|
base_dir = Path(job['server']['base_directory'])
|
|
42
|
-
|
|
43
|
-
project_dir = base_dir / (str(job['project']['id'])+"_"+job['project']['project_title'])
|
|
44
|
-
else:
|
|
45
|
-
project_dir = base_dir / job['project']['project_title']
|
|
42
|
+
project_dir = base_dir / job['project']['project_title']
|
|
46
43
|
job_dir = project_dir / job['project_job']['job_directory']
|
|
47
44
|
job_dir.mkdir(parents=True, exist_ok=True)
|
|
48
45
|
|
|
@@ -12,7 +12,7 @@ scientiflow_cli/pipeline/get_jobs.py,sha256=69jOIVwXd8j2lAYy28r2QcsjFT4yRpXNOqsf
|
|
|
12
12
|
scientiflow_cli/services/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
13
13
|
scientiflow_cli/services/auth_service.py,sha256=lknARfVTjRCH-4yWVPKiS330NIVHxFw3HlQdN2Lw3Og,3343
|
|
14
14
|
scientiflow_cli/services/base_directory.py,sha256=2dUvGYk4enLe3Cagcs_bfv2kNuHg1ws-dtMDEW_tccI,2726
|
|
15
|
-
scientiflow_cli/services/executor.py,sha256=
|
|
15
|
+
scientiflow_cli/services/executor.py,sha256=IFtWozfDJZsuU1TxDKvckVmB0vLA32ns4jvLb0IriDM,11944
|
|
16
16
|
scientiflow_cli/services/modes.py,sha256=-Bk1CJO0vgc8v_rXktfKAyHSF6cr5bGbufSGa_DtvY4,1241
|
|
17
17
|
scientiflow_cli/services/request_handler.py,sha256=CjJqEjXt8AOzyZq6UwUBzRBhahqWHj1_OKUyPG3PpFs,1335
|
|
18
18
|
scientiflow_cli/services/rich_printer.py,sha256=5ORAaZOa_84m6vP-novpPOI70UPxt0pEvmRq9999Ifg,2129
|
|
@@ -20,12 +20,12 @@ scientiflow_cli/services/status_updater.py,sha256=VjC2V6lWzjwBN7ZhCQzW_h_sMG25Po
|
|
|
20
20
|
scientiflow_cli/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
21
21
|
scientiflow_cli/utils/config.py,sha256=iq9aEVwlJA-KLPWX6Vtx6SaEgH3UAuKjNIODw2mGYxY,256
|
|
22
22
|
scientiflow_cli/utils/encryption.py,sha256=iQ-b40i75JvoB1cGANDqzZXLztD54toO_6loX1m5W9Q,1107
|
|
23
|
-
scientiflow_cli/utils/file_manager.py,sha256=
|
|
23
|
+
scientiflow_cli/utils/file_manager.py,sha256=KLdJlIzFng_BfKHHZzQNp35hXsFMWfgy4OUqodadzss,1923
|
|
24
24
|
scientiflow_cli/utils/logger.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
25
25
|
scientiflow_cli/utils/mock.py,sha256=UZ9cN2Qx3EAXcxnLQY5z4DQWy4jflnWFnfNTsuvnFH8,11237
|
|
26
26
|
scientiflow_cli/utils/singularity.py,sha256=jy8ep7Xa1Eg4fptNjyXLPuVN2KA8l4dFil-w-KaVNkw,4956
|
|
27
|
-
scientiflow_cli-0.4.
|
|
28
|
-
scientiflow_cli-0.4.
|
|
29
|
-
scientiflow_cli-0.4.
|
|
30
|
-
scientiflow_cli-0.4.
|
|
31
|
-
scientiflow_cli-0.4.
|
|
27
|
+
scientiflow_cli-0.4.13.dist-info/LICENSE.md,sha256=nb6GGGYuS_KXe33mSNwcEW-QzvwM475NQ4cNE7KBb34,425
|
|
28
|
+
scientiflow_cli-0.4.13.dist-info/METADATA,sha256=84WZnqpSqI4s-EQgi_1VEsLWSDKB839LKdWPK7qZ89E,2492
|
|
29
|
+
scientiflow_cli-0.4.13.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
30
|
+
scientiflow_cli-0.4.13.dist-info/entry_points.txt,sha256=0lq2mjcG5hGfODrQodeMSAy9RfE2EX1MZSHRpfSncxc,61
|
|
31
|
+
scientiflow_cli-0.4.13.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|