Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dws-jobtap: avoid setting aux too early #286

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

jameshcorbett
Copy link
Member

Problem: as described in #285, the dws-jobtap plugin creates a boolean jobtap aux to indicate whether or not the prolog it sets on jobs is still active, but it creates the aux in the DEPEND state despite the fact that it will not start the prolog until the RUN state. If Flux is restarted with jobs in the queue, the aux will be lost and a lookup for the aux will cause the RUN callback to fail.

Only set the prolog_active aux at the time that the prolog is actually started, and not before.

Fixes #285.

Problem: as described in flux-framework#285, the `dws-jobtap` plugin creates a
boolean jobtap aux to indicate whether or not the prolog it sets
on jobs is still active, but it creates the aux in the DEPEND state
despite the fact that it will not start the prolog until the RUN
state. If Flux is restarted with jobs in the queue, the aux
will be lost and a lookup for the aux will cause the RUN callback
to fail.

Only set the `prolog_active` aux at the time that the prolog is
actually started, and not before.

Fixes flux-framework#285.
@jameshcorbett jameshcorbett requested a review from grondo February 24, 2025 19:06
Problem: there are some duplicated string constants lying around
dws-jobtap.c.

Reduce them with a macro.
Problem: there are a number of places where errors in the execution
of the dws-jobtap plugin causes callbacks to return -1 and an error
to be logged, but no exception is raised. This could potentially
lead to jobs stranded in strange states.

Add exceptions.
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.

dws-jobtap.c: prolog can't be removed after flux restart
1 participant