Skip to content

Commit

Permalink
fix step function batch params key
Browse files Browse the repository at this point in the history
  • Loading branch information
jtherrmann committed Oct 16, 2024
1 parent 7585fed commit 0ba47e3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/render_cf.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,10 @@ def get_map_state(job_spec: dict, job_step: dict, excluded_parameters: set[str])
def get_batch_submit_job_state(job_spec: dict, job_step: dict, excluded_parameters: set[str] = None) -> dict:
if not excluded_parameters:
batch_job_parameters = '$.batch_job_parameters'
parameters_key = 'Parameters.$'
else:
batch_job_parameters = get_batch_job_parameters(job_spec, excluded_parameters)
parameters_key = 'Parameters'
if 'import' in job_step['compute_environment']:
compute_environment = job_step['compute_environment']['import']
else:
Expand All @@ -100,7 +102,7 @@ def get_batch_submit_job_state(job_spec: dict, job_step: dict, excluded_paramete
'JobQueue': '${' + job_queue + '}',
'ShareIdentifier': 'default',
'SchedulingPriorityOverride.$': '$.priority',
'Parameters.$': batch_job_parameters,
parameters_key: batch_job_parameters,
'ContainerOverrides.$': '$.container_overrides',
'RetryStrategy': {
'Attempts': 3
Expand Down

0 comments on commit 0ba47e3

Please sign in to comment.