-
-
Notifications
You must be signed in to change notification settings - Fork 505
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
Finished callback #185
Comments
callbacks have been added to the release-1.10 branch, and used via the import sh
def done(p):
print(p.exit_code)
p = sh.sleep(3, _done=done)
p.wait() |
Great thanks! callbacks have been added to the release-1.10 branch, and used via the _done special keyword argument: import sh def done(p): p = sh.sleep(3, _done=done) Reply to this email directly or view it on GitHubhttps://github.com//issues/185#issuecomment-68230063. |
It is a feature request then a bug report. I would like to be able to get a callback when a process is finished. It would simplify handling of background jobs. It would also allow to implement a proper load balancing if multiple background jobs may be executed in parallel.
The text was updated successfully, but these errors were encountered: