scientiflow-cli 0.4.17__py3-none-any.whl → 0.4.18__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.
@@ -10,12 +10,15 @@ from scientiflow_cli.services.base_directory import get_base_directory
10
10
  printer = RichPrinter()
11
11
 
12
12
 
13
- def get_all_pending_jobs() -> list[dict]:
13
+ def get_all_pending_jobs(is_cloud: bool = False) -> list[dict]:
14
14
  """
15
15
  Gets all the pending and running jobs using the get_jobs function
16
16
  """
17
17
  try:
18
- return get_jobs()
18
+ if is_cloud:
19
+ return get_jobs(is_cloud=is_cloud)
20
+ else:
21
+ return get_jobs()
19
22
 
20
23
  except Exception as e:
21
24
  printer.print_error("An unexpected error occurred")
@@ -27,7 +30,7 @@ def execute_jobs(job_ids: list[int] = None, parallel: bool = False, is_cloud: bo
27
30
  Execute jobs based on the provided job IDs. If no job IDs are provided, execute all pending jobs.
28
31
  If `parallel` is True, execute jobs asynchronously.
29
32
  """
30
- all_pending_jobs = get_all_pending_jobs()
33
+ all_pending_jobs = get_all_pending_jobs(is_cloud)
31
34
 
32
35
  if job_ids:
33
36
  # Filter jobs based on provided job IDs
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: scientiflow-cli
3
- Version: 0.4.17
3
+ Version: 0.4.18
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=pi9pIPw7ZwIiIRN50BgUMtzf542eqGxQfTLi
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=RuLB2vt4msI8QenA-lMPuVfDn7fLvfYrALpWdN6ZmuA,11967
15
+ scientiflow_cli/services/executor.py,sha256=NrEx3vw6Qp-zAbzzjb7RXr0_P-M10rwbrOrY9MpvNng,12083
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
@@ -24,8 +24,8 @@ scientiflow_cli/utils/file_manager.py,sha256=KLdJlIzFng_BfKHHZzQNp35hXsFMWfgy4OU
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.17.dist-info/LICENSE.md,sha256=nb6GGGYuS_KXe33mSNwcEW-QzvwM475NQ4cNE7KBb34,425
28
- scientiflow_cli-0.4.17.dist-info/METADATA,sha256=zcFXPA5sPj0O8elcrKhXeluREBM8gB-be-E7TzzhL2A,2492
29
- scientiflow_cli-0.4.17.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
30
- scientiflow_cli-0.4.17.dist-info/entry_points.txt,sha256=0lq2mjcG5hGfODrQodeMSAy9RfE2EX1MZSHRpfSncxc,61
31
- scientiflow_cli-0.4.17.dist-info/RECORD,,
27
+ scientiflow_cli-0.4.18.dist-info/LICENSE.md,sha256=nb6GGGYuS_KXe33mSNwcEW-QzvwM475NQ4cNE7KBb34,425
28
+ scientiflow_cli-0.4.18.dist-info/METADATA,sha256=1zjoTWWeM4v85VjFOxsfjuD1M__opxZwLNKqZplQpnM,2492
29
+ scientiflow_cli-0.4.18.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
30
+ scientiflow_cli-0.4.18.dist-info/entry_points.txt,sha256=0lq2mjcG5hGfODrQodeMSAy9RfE2EX1MZSHRpfSncxc,61
31
+ scientiflow_cli-0.4.18.dist-info/RECORD,,