lsst-ctrl-bps-htcondor 29.2025.1600__py3-none-any.whl → 29.2025.1800__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.
@@ -703,7 +703,7 @@ def htc_submit_dag(sub):
703
703
  return schedd_dag_info
704
704
 
705
705
 
706
- def htc_create_submit_from_dag(dag_filename, submit_options=None):
706
+ def htc_create_submit_from_dag(dag_filename: str, submit_options: dict[str, Any]) -> htcondor.Submit:
707
707
  """Create a DAGMan job submit description.
708
708
 
709
709
  Parameters
@@ -730,11 +730,26 @@ def htc_create_submit_from_dag(dag_filename, submit_options=None):
730
730
  var_name = "_CONDOR_DAGMAN_MANAGER_JOB_APPEND_GETENV"
731
731
  if var_name not in os.environ:
732
732
  os.environ[var_name] = "True"
733
- do_recurse = submit_options.get("do_recurse", None)
734
- if do_recurse:
733
+
734
+ if "do_recurse" in submit_options:
735
735
  var_name = "_CONDOR_DAGMAN_GENERATE_SUBDAG_SUBMITS"
736
736
  if var_name not in os.environ:
737
- os.environ[var_name] = str(do_recurse)
737
+ os.environ[var_name] = str(submit_options["do_recurse"])
738
+
739
+ # Config and environment variables do not seem to override -MaxIdle
740
+ # on the .dag.condor.sub's command line (broken in some 24.0.x versions).
741
+ # Explicitly forward them as a submit_option if either exists.
742
+ # Note: auto generated subdag submit files are still the -MaxIdle=1000
743
+ # in the broken versions.
744
+ if "MaxIdle" not in submit_options:
745
+ max_jobs_idle: int | None = None
746
+ config_var_name = "DAGMAN_MAX_JOBS_IDLE"
747
+ if f"_CONDOR_{config_var_name}" in os.environ:
748
+ max_jobs_idle = int(os.environ[f"_CONDOR_{config_var_name}"])
749
+ elif config_var_name in htcondor.param:
750
+ max_jobs_idle = htcondor.param[config_var_name]
751
+ if max_jobs_idle:
752
+ submit_options["MaxIdle"] = max_jobs_idle
738
753
 
739
754
  return htcondor.Submit.from_dag(dag_filename, submit_options)
740
755
 
@@ -1,2 +1,2 @@
1
1
  __all__ = ["__version__"]
2
- __version__ = "29.2025.1600"
2
+ __version__ = "29.2025.1800"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: lsst-ctrl-bps-htcondor
3
- Version: 29.2025.1600
3
+ Version: 29.2025.1800
4
4
  Summary: HTCondor 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,17 +3,17 @@ lsst/ctrl/bps/htcondor/final_post.sh,sha256=chfaQV6Q7rGsK-8Hx58ch52m-PofvBanrl7V
3
3
  lsst/ctrl/bps/htcondor/handlers.py,sha256=2gM3Ac00in4ob9ckcP331W1LSEjs9UDKIqt4MULA4bg,11196
4
4
  lsst/ctrl/bps/htcondor/htcondor_config.py,sha256=c4lCiYEwEXFdxgbMfEkbDm4LrvkRMF31SqLtQqzqIV4,1523
5
5
  lsst/ctrl/bps/htcondor/htcondor_service.py,sha256=-qf7FG1yvxawf9vHfUMZtofVrrK06CMbviarLRXGg_0,88308
6
- lsst/ctrl/bps/htcondor/lssthtc.py,sha256=-cpDETrp0T8oNgaQ9y5M773yuaLM9OwQQg8oht7-uVM,79632
6
+ lsst/ctrl/bps/htcondor/lssthtc.py,sha256=Rsfr7ZehZHiRWmF-8FMDReZQrGMtKii7CO2O8Vu9hYg,80420
7
7
  lsst/ctrl/bps/htcondor/provisioner.py,sha256=hPN8YJUtwNHQylw68kfskF1S2vCeQvztF8W0d_QKqqM,7851
8
- lsst/ctrl/bps/htcondor/version.py,sha256=DWDCyavYRMZByGPGMYcnpz6piNv1sQvCKH8yohX_F3c,55
8
+ lsst/ctrl/bps/htcondor/version.py,sha256=uRdffTNnwH4GQy77H1Wk3Md64craDCIuRxmCtF7ON0g,55
9
9
  lsst/ctrl/bps/htcondor/etc/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
10
10
  lsst/ctrl/bps/htcondor/etc/htcondor_defaults.yaml,sha256=xDRts4vHKov2PE_JRh-0nF3jfuNJXtKBXZqveASp_iA,1422
11
- lsst_ctrl_bps_htcondor-29.2025.1600.dist-info/licenses/COPYRIGHT,sha256=Lc6NoAEFQ65v_SmtS9NwfHTOuSUtC2Umbjv5zyowiQM,61
12
- lsst_ctrl_bps_htcondor-29.2025.1600.dist-info/licenses/LICENSE,sha256=pRExkS03v0MQW-neNfIcaSL6aiAnoLxYgtZoFzQ6zkM,232
13
- lsst_ctrl_bps_htcondor-29.2025.1600.dist-info/licenses/bsd_license.txt,sha256=7MIcv8QRX9guUtqPSBDMPz2SnZ5swI-xZMqm_VDSfxY,1606
14
- lsst_ctrl_bps_htcondor-29.2025.1600.dist-info/licenses/gpl-v3.0.txt,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
15
- lsst_ctrl_bps_htcondor-29.2025.1600.dist-info/METADATA,sha256=MVfzl6Z7S_lkRoXpmMpmECgw6AOfhEP4F4DMuKFR1ys,2139
16
- lsst_ctrl_bps_htcondor-29.2025.1600.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
17
- lsst_ctrl_bps_htcondor-29.2025.1600.dist-info/top_level.txt,sha256=eUWiOuVVm9wwTrnAgiJT6tp6HQHXxIhj2QSZ7NYZH80,5
18
- lsst_ctrl_bps_htcondor-29.2025.1600.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
19
- lsst_ctrl_bps_htcondor-29.2025.1600.dist-info/RECORD,,
11
+ lsst_ctrl_bps_htcondor-29.2025.1800.dist-info/licenses/COPYRIGHT,sha256=Lc6NoAEFQ65v_SmtS9NwfHTOuSUtC2Umbjv5zyowiQM,61
12
+ lsst_ctrl_bps_htcondor-29.2025.1800.dist-info/licenses/LICENSE,sha256=pRExkS03v0MQW-neNfIcaSL6aiAnoLxYgtZoFzQ6zkM,232
13
+ lsst_ctrl_bps_htcondor-29.2025.1800.dist-info/licenses/bsd_license.txt,sha256=7MIcv8QRX9guUtqPSBDMPz2SnZ5swI-xZMqm_VDSfxY,1606
14
+ lsst_ctrl_bps_htcondor-29.2025.1800.dist-info/licenses/gpl-v3.0.txt,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
15
+ lsst_ctrl_bps_htcondor-29.2025.1800.dist-info/METADATA,sha256=bMwrKlHzLXxi4nDsPMVNyaV607WgFOpA9O2-pa-LFDc,2139
16
+ lsst_ctrl_bps_htcondor-29.2025.1800.dist-info/WHEEL,sha256=wXxTzcEDnjrTwFYjLPcsW_7_XihufBwmpiBeiXNBGEA,91
17
+ lsst_ctrl_bps_htcondor-29.2025.1800.dist-info/top_level.txt,sha256=eUWiOuVVm9wwTrnAgiJT6tp6HQHXxIhj2QSZ7NYZH80,5
18
+ lsst_ctrl_bps_htcondor-29.2025.1800.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
19
+ lsst_ctrl_bps_htcondor-29.2025.1800.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (78.1.0)
2
+ Generator: setuptools (80.1.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5