-
Notifications
You must be signed in to change notification settings - Fork 965
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
Make user can control when to stop a job. #15
Conversation
Thanks @cfrco for your contribution! I agree that it is a good idea to have a way to cancel recurring jobs in schedule. I'm not sure if a job function's return value should determine whether the job gets cancelled or not. I think this may be confusing because |
Hi, There is a problem if we only provide I have two ideas. (2) Use a new empty-class (may call |
Thanks @cfrco, it looks good now! Once you add a test case for removing and invalid job to bring the coverage back up it's good to merge :-) |
Looks good now, thanks for your contribution @cfrco! |
Allow jobs to cancel repeated execution.
@cfrco |
: ) Thank you, too. |
Hi How using these function with parallel thread you are showing here: https://github.com/dbader/schedule/blob/master/FAQ.rst Thank you |
I think it's good for user can stop the job (just return False in job_func).