Skip to content

Update generic_utils.py to allow safe parallel execution#265

Open
MarbuelB wants to merge 1 commit into
martinpacesa:mainfrom
MarbuelB:patch-2
Open

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

Conversation

@MarbuelB

Copy link
Copy Markdown

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
Copy Markdown

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