Skip to content

Update generic_utils.py to allow safe parallel execution#265

Open
mmb78 wants to merge 1 commit intomartinpacesa:mainfrom
mmb78:patch-2
Open

Update generic_utils.py to allow safe parallel execution#265
mmb78 wants to merge 1 commit intomartinpacesa:mainfrom
mmb78:patch-2

Conversation

@mmb78
Copy link

@mmb78 mmb78 commented Jun 24, 2025

MODIFICATION FOR PARALLEL EXECUTION

Minimal changes from v1.5.1 to allow safe execution as a SLURM job array.

# MODIFICATION FOR PARALLEL EXECUTION
# Minimal changes from v1.5.1 to allow safe execution as a SLURM job array.
@Andre-C-M
Copy link

This solution works for array jobs but not for multiple independent
submissions (./submit.sh run multiple times). Consider fcntl.flock()
for OS-level locking that works in all scenarios.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants