Skip to content

Commit 7d70c6a

Browse files
authored
Merge pull request #87 from lsst/tickets/DM-50400
pass IDDS_MAX_NAME_LENGTH to remote build task
2 parents a630f6c + 9dd6967 commit 7d70c6a

4 files changed

Lines changed: 8 additions & 0 deletions

File tree

config/bps_remote.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ remoteBuild:
2222
export PANDACACHE_URL=$PANDA_URL_SSL;
2323
export PANDA_URL=$PANDA_URL_SSL;
2424
export PANDA_BEHIND_REAL_LB=true;
25+
export IDDS_MAX_NAME_LENGTH={IDDS_MAX_NAME_LENGTH};
2526
{custom_lsst_setup}
2627
python3 ${CTRL_BPS_PANDA_DIR}/python/lsst/ctrl/bps/panda/edgenode/build_cmd_line_decoder.py \
2728
_download_cmd_line_ _build_cmd_line_ _compute_site_

doc/changes/DM-50400.bugfix.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Passed IDDS_MAX_NAME_LENGTH to remote build task

python/lsst/ctrl/bps/panda/constants.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,4 @@
4141
PANDA_DEFAULT_MAX_COPY_WORKERS = 10
4242
PANDA_DEFAULT_MAX_PAYLOADS_PER_PANDA_JOB = 10
4343
PANDA_DEFAULT_ORDER_ID_MAP_FILE = "panda_order_id_map.json"
44+
PANDA_DEFAULT_NAME_LENGTH = 4000

python/lsst/ctrl/bps/panda/utils.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@
6060
PANDA_DEFAULT_MAX_JOBS_PER_TASK,
6161
PANDA_DEFAULT_MAX_PAYLOADS_PER_PANDA_JOB,
6262
PANDA_DEFAULT_MAX_WALLTIME,
63+
PANDA_DEFAULT_NAME_LENGTH,
6364
PANDA_DEFAULT_ORDER_ID_MAP_FILE,
6465
PANDA_DEFAULT_PRIORITY,
6566
PANDA_DEFAULT_PROCESSING_TYPE,
@@ -876,6 +877,10 @@ def create_idds_build_workflow(**kwargs):
876877
search_opt = {"replaceVars": True, "expandEnvVars": False, "replaceEnvVars": False, "required": False}
877878
cvals = {"LSST_VERSION": get_task_parameter(config, remote_build, "LSST_VERSION")}
878879
cvals["custom_lsst_setup"] = get_task_parameter(config, remote_build, "custom_lsst_setup")
880+
max_name_length = PANDA_DEFAULT_NAME_LENGTH
881+
if "IDDS_MAX_NAME_LENGTH" in os.environ:
882+
max_name_length = int(os.environ["IDDS_MAX_NAME_LENGTH"])
883+
cvals["IDDS_MAX_NAME_LENGTH"] = max_name_length
879884
search_opt["curvals"] = cvals
880885
_, executable = remote_build.search("runnerCommand", opt=search_opt)
881886
executable = executable.replace("_download_cmd_line_", remote_filename)

0 commit comments

Comments
 (0)