Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions changelog.d/20260803_102412_jwhite242_submit_sleep.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
### Fixed

- Guards sleep in submit loop to only trigger if a submission failure occurs. Significantly speeds up job submission rates which were previously capped at 1 per second due to this sleep. Implemented in [PR #481](https://github.com/llnl/maestrowf/pull/481).
3 changes: 2 additions & 1 deletion maestrowf/datastructures/core/executiongraph.py
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,8 @@ def _execute_record(self, record, adapter, restart=False):
# Increment the number of restarts we've attempted.
LOGGER.debug("Completed submission attempt %d", num_restarts)
num_restarts += 1
sleep((random.random() + 1) * num_restarts)
if retcode != SubmissionCode.OK:
sleep((random.random() + 1) * num_restarts)

if retcode == SubmissionCode.OK:
self.in_progress.add(record.name)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[tool]
[tool.poetry]
name = "maestrowf"
version = "1.2.1dev4"
version = "1.2.1dev5"
description = "A tool to easily orchestrate general computational workflows both locally and on supercomputers."
license = "MIT License"
classifiers = [
Expand Down
Loading