scientiflow-cli 0.4.10__py3-none-any.whl → 0.4.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.
@@ -5,6 +5,7 @@ from scientiflow_cli.pipeline.decode_and_execute import decode_and_execute_pipel
5
5
  from scientiflow_cli.pipeline.container_manager import get_job_containers
6
6
  from scientiflow_cli.utils.file_manager import create_job_dirs, get_job_files
7
7
  from scientiflow_cli.services.rich_printer import RichPrinter
8
+ from scientiflow_cli.services.base_directory import get_base_directory
8
9
 
9
10
  printer = RichPrinter()
10
11
 
@@ -34,6 +35,9 @@ def execute_jobs(job_ids: list[int] = None, parallel: bool = False, is_cloud: bo
34
35
  for job_id in job_ids:
35
36
  matching_jobs = [job for job in all_pending_jobs if job['project_job']['id'] == job_id]
36
37
  if matching_jobs:
38
+ if is_cloud:
39
+ for job in matching_jobs:
40
+ job['server']['base_directory'] = get_base_directory()
37
41
  jobs_to_execute.extend(matching_jobs)
38
42
  else:
39
43
  printer.print_error(f"Job with id: {job_id} not found")
@@ -40,7 +40,7 @@ def get_job_files(job: dict) -> None:
40
40
  def create_job_dirs(job: dict, is_cloud: bool = False) -> None:
41
41
  base_dir = Path(job['server']['base_directory'])
42
42
  if is_cloud:
43
- project_dir = base_dir / (job['project']['id']+"_"+job['project']['project_title'])
43
+ project_dir = base_dir / (str(job['project']['id'])+"_"+job['project']['project_title'])
44
44
  else:
45
45
  project_dir = base_dir / job['project']['project_title']
46
46
  job_dir = project_dir / job['project_job']['job_directory']
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: scientiflow-cli
3
- Version: 0.4.10
3
+ Version: 0.4.11
4
4
  Summary: CLI tool for scientiflow. This application runs on the client side, decodes pipelines, and executes them in the configured order!
5
5
  License: Proprietary
6
6
  Author: ScientiFlow
@@ -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=Qj_DfU8umsmc9_rzTsy47EeaOehc6E24x_t4lFmWKcY,11480
15
+ scientiflow_cli/services/executor.py,sha256=Fum3VHiIt4IHBE3-AAXEtrKmPhdKjj1cHw_xS2fIjs8,11705
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=JRCXPENFHdPOc0NBwGorRh4EpeZ-UtMtwHGVJjSVihc,2070
23
+ scientiflow_cli/utils/file_manager.py,sha256=OjIXM_VV8t4ctLQDFo7g2sYf9ewPb2n5pe07J7OcvrY,2075
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.10.dist-info/LICENSE.md,sha256=nb6GGGYuS_KXe33mSNwcEW-QzvwM475NQ4cNE7KBb34,425
28
- scientiflow_cli-0.4.10.dist-info/METADATA,sha256=FAtdDTT1yz7cW7XpeOZuOuGTdDDXOF1FpBrHB5h5YcY,2492
29
- scientiflow_cli-0.4.10.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
30
- scientiflow_cli-0.4.10.dist-info/entry_points.txt,sha256=0lq2mjcG5hGfODrQodeMSAy9RfE2EX1MZSHRpfSncxc,61
31
- scientiflow_cli-0.4.10.dist-info/RECORD,,
27
+ scientiflow_cli-0.4.11.dist-info/LICENSE.md,sha256=nb6GGGYuS_KXe33mSNwcEW-QzvwM475NQ4cNE7KBb34,425
28
+ scientiflow_cli-0.4.11.dist-info/METADATA,sha256=y1LNbm1rmY1J_Ck4xjqL9tit22N1ua3zljRjlCLED5M,2492
29
+ scientiflow_cli-0.4.11.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
30
+ scientiflow_cli-0.4.11.dist-info/entry_points.txt,sha256=0lq2mjcG5hGfODrQodeMSAy9RfE2EX1MZSHRpfSncxc,61
31
+ scientiflow_cli-0.4.11.dist-info/RECORD,,