lsst-ctrl-bps-panda 29.2025.2100__py3-none-any.whl → 29.2025.2300__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.
@@ -379,6 +379,47 @@ class PanDAService(BaseWmsService):
379
379
  if status != 0:
380
380
  raise RuntimeError(message)
381
381
 
382
+ def get_status(
383
+ self,
384
+ wms_workflow_id=None,
385
+ hist=0,
386
+ is_global=False,
387
+ ):
388
+ # Docstring inherited from BaseWmsService.get_status.
389
+
390
+ idds_client = get_idds_client(self.config)
391
+ ret = idds_client.get_requests(request_id=wms_workflow_id, with_detail=False)
392
+ _LOG.debug("PanDA get workflow status returned = %s", str(ret))
393
+
394
+ request_status = ret[0]
395
+ if request_status != 0:
396
+ state = WmsStates.UNKNOWN
397
+ message = f"Error getting workflow status for id {wms_workflow_id}: ret = {ret}"
398
+ else:
399
+ tasks = ret[1][1]
400
+ if not tasks:
401
+ state = WmsStates.UNKNOWN
402
+ message = f"No records found for workflow id '{wms_workflow_id}'. Hint: double check the id"
403
+ elif not isinstance(tasks[0], dict):
404
+ state = WmsStates.UNKNOWN
405
+ message = f"Error getting workflow status for id {wms_workflow_id}: ret = {ret}"
406
+ else:
407
+ message = ""
408
+ head = tasks[0]
409
+ workflow_status = head["status"]["attributes"]["_name_"]
410
+ if workflow_status in ["Finished"]:
411
+ state = WmsStates.SUCCEEDED
412
+ elif workflow_status in ["Failed", "Expired", "SubFinished"]:
413
+ state = WmsStates.FAILED
414
+ elif workflow_status in ["Cancelled"]:
415
+ state = WmsStates.DELETED
416
+ elif workflow_status in ["Suspended"]:
417
+ state = WmsStates.HELD
418
+ else:
419
+ state = WmsStates.RUNNING
420
+
421
+ return state, message
422
+
382
423
 
383
424
  class PandaBpsWmsWorkflow(BaseWmsWorkflow):
384
425
  """A single Panda based workflow.
@@ -1,2 +1,2 @@
1
1
  __all__ = ["__version__"]
2
- __version__ = "29.2025.2100"
2
+ __version__ = "29.2025.2300"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: lsst-ctrl-bps-panda
3
- Version: 29.2025.2100
3
+ Version: 29.2025.2300
4
4
  Summary: PanDA plugin for lsst-ctrl-bps.
5
5
  Author-email: Rubin Observatory Data Management <dm-admin@lists.lsst.org>
6
6
  License: BSD 3-Clause License
@@ -3,9 +3,9 @@ lsst/ctrl/bps/panda/cmd_line_embedder.py,sha256=_gyqWQQxM8ZtZzQbWlOdgjfgrotrwV3s
3
3
  lsst/ctrl/bps/panda/constants.py,sha256=hhV1CDHW9G-Z6z2wGaAc41EMlJ-yn2NN3A8psDyjTkw,1907
4
4
  lsst/ctrl/bps/panda/panda_auth_drivers.py,sha256=Ff0QsrTgQYbHDCK89_Gayu_2ZC1i3RRt-Dnnx10b8G4,2558
5
5
  lsst/ctrl/bps/panda/panda_auth_utils.py,sha256=wb-vlB9jvabVIHKlqukE1vILO_0Q9iixE3xXyROeN2s,5093
6
- lsst/ctrl/bps/panda/panda_service.py,sha256=iil1bvfmBNhZ3ZQ04UwlP3vshxNyJk5mZhMAhIaObpI,17278
6
+ lsst/ctrl/bps/panda/panda_service.py,sha256=Gk9Ex7Z1b_c3rgqVvjjt2WhkwDOGD-VQfEo4ufy0HQ8,18941
7
7
  lsst/ctrl/bps/panda/utils.py,sha256=FmecYPsL3JbUwXQCgx5rpgDNG9yxlbPD0sJON-kbin4,39594
8
- lsst/ctrl/bps/panda/version.py,sha256=czd5myijXlfzN1l1OFP7x6hn5ASHoE02wXhI32IqLec,55
8
+ lsst/ctrl/bps/panda/version.py,sha256=GnyaHNlpLZJmdCekPuL3VEJCw758_rgDNpEpGPT5mRw,55
9
9
  lsst/ctrl/bps/panda/cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
10
10
  lsst/ctrl/bps/panda/cli/panda_auth.py,sha256=i54ati_HoKSlyslQRBl7QpX1w5z8MjSfHHMpT43ZeXQ,2055
11
11
  lsst/ctrl/bps/panda/cli/cmd/__init__.py,sha256=WVcBiZ3z9rnG4FOsYMgp1QYGwlkM9n_edpMbGDBvCrs,1393
@@ -18,12 +18,12 @@ lsst/ctrl/bps/panda/conf_example/test_usdf.yaml,sha256=WIbXCJZDaG7zYUHt7U96MUjUs
18
18
  lsst/ctrl/bps/panda/edgenode/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
19
19
  lsst/ctrl/bps/panda/edgenode/build_cmd_line_decoder.py,sha256=CjB_ESDKLK67QPlcZHWoJzfaqgC733ih_iIQrwYkiUo,3067
20
20
  lsst/ctrl/bps/panda/edgenode/cmd_line_decoder.py,sha256=3pxSE672LPF5J51Vc0h4dyyRi0Is8vSmXfNT3NYpcRg,13660
21
- lsst_ctrl_bps_panda-29.2025.2100.dist-info/licenses/COPYRIGHT,sha256=5ATATZSyXxMNKoJuCJdATg4YNm56ubTwU_hDbShxIWw,116
22
- lsst_ctrl_bps_panda-29.2025.2100.dist-info/licenses/LICENSE,sha256=pRExkS03v0MQW-neNfIcaSL6aiAnoLxYgtZoFzQ6zkM,232
23
- lsst_ctrl_bps_panda-29.2025.2100.dist-info/licenses/bsd_license.txt,sha256=7MIcv8QRX9guUtqPSBDMPz2SnZ5swI-xZMqm_VDSfxY,1606
24
- lsst_ctrl_bps_panda-29.2025.2100.dist-info/licenses/gpl-v3.0.txt,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
25
- lsst_ctrl_bps_panda-29.2025.2100.dist-info/METADATA,sha256=zNwRCa62S-BOkRBNqaVS5KLNeFfIasaDARYkLhya3F0,2375
26
- lsst_ctrl_bps_panda-29.2025.2100.dist-info/WHEEL,sha256=zaaOINJESkSfm_4HQVc5ssNzHCPXhJm0kEUakpsEHaU,91
27
- lsst_ctrl_bps_panda-29.2025.2100.dist-info/top_level.txt,sha256=eUWiOuVVm9wwTrnAgiJT6tp6HQHXxIhj2QSZ7NYZH80,5
28
- lsst_ctrl_bps_panda-29.2025.2100.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
29
- lsst_ctrl_bps_panda-29.2025.2100.dist-info/RECORD,,
21
+ lsst_ctrl_bps_panda-29.2025.2300.dist-info/licenses/COPYRIGHT,sha256=5ATATZSyXxMNKoJuCJdATg4YNm56ubTwU_hDbShxIWw,116
22
+ lsst_ctrl_bps_panda-29.2025.2300.dist-info/licenses/LICENSE,sha256=pRExkS03v0MQW-neNfIcaSL6aiAnoLxYgtZoFzQ6zkM,232
23
+ lsst_ctrl_bps_panda-29.2025.2300.dist-info/licenses/bsd_license.txt,sha256=7MIcv8QRX9guUtqPSBDMPz2SnZ5swI-xZMqm_VDSfxY,1606
24
+ lsst_ctrl_bps_panda-29.2025.2300.dist-info/licenses/gpl-v3.0.txt,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
25
+ lsst_ctrl_bps_panda-29.2025.2300.dist-info/METADATA,sha256=klTNWzIbdt8NdxjZ3l9rJNv9r-afLHioUBdin-kyzsQ,2375
26
+ lsst_ctrl_bps_panda-29.2025.2300.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
27
+ lsst_ctrl_bps_panda-29.2025.2300.dist-info/top_level.txt,sha256=eUWiOuVVm9wwTrnAgiJT6tp6HQHXxIhj2QSZ7NYZH80,5
28
+ lsst_ctrl_bps_panda-29.2025.2300.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
29
+ lsst_ctrl_bps_panda-29.2025.2300.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (80.8.0)
2
+ Generator: setuptools (80.9.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5