flux-docs
flux-docs copied to clipboard
waiting-for-jobs: add new guide
Add a new guide on how to wait for jobs to complete.
pushed a fixup, tweaking a few things, adding a sentence here and there given comments above
Perhaps something should be said in here to the effect of: flux job wait implements semantics similar to wait(2) and waitpid(2) system calls or the wait POSIX shell command. It is much more efficient than flux job status, but can only be called once per waitable job since the wait status is "reaped", and it requires instance owner privileges.
If you need to wait for thousands of jobs efficiently, or need to wait for single jobs as they complete, then flux job wait with waitable jobs is probably the best solution.
re-pushed. taking into account several of the comments above, re-worked the flow of the flux job wait section a bit.
re-pushed, updating example script given completion of https://github.com/flux-framework/flux-core/issues/5033
this should be updated to include flux watch