Skip to content

Commit

Permalink
Don't assume all jobs share the same keys in their limits
Browse files Browse the repository at this point in the history
  • Loading branch information
naegelyd-insitro committed Mar 4, 2024
1 parent a61bad9 commit b57a543
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion redun/scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -1313,7 +1313,7 @@ def _add_job_pending_limits(self, job: Job, eval_args: Tuple[Tuple, dict]) -> No

def _add_limits(self, limits1, limits2):
return {
limit_name: limits1[limit_name] + limits2[limit_name]
limit_name: limits1.get(limit_name, 0) + limits2.get(limit_name, 0)
for limit_name in set(limits1) | set(limits2)
}

Expand Down

0 comments on commit b57a543

Please sign in to comment.