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

--block option to block until jobs have finished #103

Closed
pipitone opened this issue May 31, 2016 · 10 comments
Closed

--block option to block until jobs have finished #103

pipitone opened this issue May 31, 2016 · 10 comments
Milestone

Comments

@pipitone
Copy link
Collaborator

pipitone commented May 31, 2016

Grid engine has the -sync y option that makes qsub block until the submitted job finishes (or errors out). This can be useful when writing dynamic pipelines with stages that can't be submitted all at once with dependencies (because which later stages run depend on the outputs from earlier stages).

It appears PBS does not have this feature (and unsure about other platforms), but we could make our own by polling qstat.

@pipitone pipitone added this to the sometime milestone May 31, 2016
@pipitone
Copy link
Collaborator Author

pipitone commented Jun 1, 2016

The PBS hack way of blocking (e.g. for job id 12345):

qsub -W depend=after:12345 -I -x true

@gdevenyi
Copy link
Member

gdevenyi commented Jun 8, 2016

Discussion re: PBS adaptivecomputing/torque#268

@gdevenyi
Copy link
Member

gdevenyi commented Jun 8, 2016

After bringing it up on the mailing list, and being pointed to that thread, it looks like there's been movement and it will be implemented.

Pity clusters usually run old versions for a long time.

@pipitone
Copy link
Collaborator Author

pipitone commented Jun 9, 2016

Okay, let's use my hack above for now. It should work generally, I think.

@gdevenyi
Copy link
Member

gdevenyi commented Apr 18, 2018

--wait is the option for sbatch

@gdevenyi
Copy link
Member

Need this feature to fix up all the ants scripts so they play nicer with Niagara

@gdevenyi
Copy link
Member

Job submission for blocking needs to be done via a map or other parallel object, otherwise you get sequential blocking during submission.

@gdevenyi gdevenyi modified the milestones: sometime, v3.0.0 Jun 20, 2019
@gdevenyi
Copy link
Member

PBS hack version requires #156 implemented

@gdevenyi
Copy link
Member

gdevenyi commented Jul 8, 2021

At some point PBS added -Wblock=true. It is not clear which versions of PBS (Torque, PBSPro, OpenPBS) actually support this, but it should be added

https://lists.gnu.org/archive/html/help-make/2017-10/msg00004.html

@gdevenyi
Copy link
Member

Fixed by #213

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