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

job-manager: jobspec_update_pack with jobid #5957

Open
jameshcorbett opened this issue May 10, 2024 · 1 comment
Open

job-manager: jobspec_update_pack with jobid #5957

jameshcorbett opened this issue May 10, 2024 · 1 comment

Comments

@jameshcorbett
Copy link
Member

Problem: a flux-coral2 jobtap plugin would like to modify a job's jobspec asynchronously while the job is in DEPEND, but the flux_jobtap_jobspec_update_pack function only operates on the current job. It would be nice if there were a version of flux_jobtap_jobspec_update_pack that accepted a jobid argument.

See also flux-framework/flux-coral2#158.

@grondo
Copy link
Contributor

grondo commented May 10, 2024

flux_jobtap_jobspec_update_pack() has to stage jobspec updates so that they can be applied after the current jobtap callback returns. This is required so that the jobspec doesn't change out from under plugins while they're still referencing it.

If updating a jobspec for a job asynchronously, we don't necessarily need to stage the updates like that, so the function would be much simpler. In fact, it would be a small wrapper around flux_jobtap_event_post_pack(3) essentially, so perhaps an interim solution would be to use that to post a jobspec-update event?

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

No branches or pull requests

2 participants