-
Notifications
You must be signed in to change notification settings - Fork 362
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
Scheduler update #840
Scheduler update #840
Conversation
Update:
Next thing to do: implement Another interesting idea could be a decorator for jobs that do not start inside a hook or a tool. @schedule(date=date)
def func():
log.info("WhiteRabbit: Hi there!") What do you think? P.S. |
Really like this! About the About the id/name of the scheduled jobs I totally agree: if you start a recurrent task at the moment you cannot delete it at runtime (maybe inserting some logic in the scheduled job itself, but sometimes may not be such a cool idea). Plus, in the future, one could build a plugin(the WhiteRabbitInAction) that creates job, deletes them, pauses them, etc. |
Update: Added ids management, |
Awesome! Thanks @jacopopalumbo01 @lucagobbi |
Description
Now the StrayCat has the WhiteRabbit property. Added the
schedule_jobs
. There are some missing things (like the other types of scheduling discussed in #839.With this update you can schedule a job like follows:
Notice: If you don't need the cat instance in the scheduled job you can just ignore it, now it is handled as a kwarg. This means that you can also pass other attributes to the method. Example:
Related to PR #836 discussion and #839
Type of change
Checklist: