Skip to content

Commit b7931fb

Browse files
authored
Merge pull request #168 from duplocloud/fix/DUPLO-35318
removing schedulingpriority if set to 0
2 parents 1a03064 + f907edf commit b7931fb

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1515
### Fixed
1616

1717
- batch job definition fails with deprecated vcpu/memory assignment
18+
- batch job adds zero-value schedulingpriority value which breaks submission to non-prioritized job queues
1819

1920
## [0.3.0] - 2025-07-15
2021

src/duplo_resource/batch_definition.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,8 @@ def _to_def_request(self, body: dict) -> dict:
207207
body.pop("JobDefinitionArn", None)
208208
body.pop("Revision", None)
209209
body.pop("Status", None)
210+
if body.get("SchedulingPriority") == 0:
211+
body.pop("SchedulingPriority", None)
210212
# Remove container fields
211213
if "ContainerProperties" in body:
212214
container_props = body["ContainerProperties"]

0 commit comments

Comments
 (0)