Possible new feature - have --halt-on-error end ‘now’ or ‘soon’ based on the return code of the command used in --limit.
Just an example; it certainly doesn't have to be implemented this way: parallel --limit '[[ $(date +%s) -ge 1585465200 ]]' --halt-on-error soon,limit=1 … would run until midnight tonight, finish any jobs running, then quit without running any more jobs. Another example closer to what I want to accomplish right now: parallel --limit '[[ $(stat -c %a -f /filesystem) -gt 100000 ]]' --halt-on-error soon,limit=1 … Would run something that consumes disk space, and stop running new jobs when the free disk space got below 100,000 blocks. I'm not sure what implication of --halt-on-ereror soon,limit=3% would be though. Thanks for the wonderful parallel universe! – Larry
pEpkey.asc
Description: application/pgp-keys
pEpkey.asc
Description: application/pgp-keys