You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use scheduler to run periodic tasks in a long-running daemon. There are many cases when it would be useful to have custom attributes set on the commands.
For example, having a simple name it will help to log commands run or distinguish them from each other.
It is possible to add a custom attribute to the command instance, but it is not inherited when the new command is created with next().
cmd = PeriodicCommandFixedDelay.daily_at(tasktime, job)
cmd.name = "my task name"
The text was updated successfully, but these errors were encountered:
I use scheduler to run periodic tasks in a long-running daemon. There are many cases when it would be useful to have custom attributes set on the commands.
For example, having a simple name it will help to log commands run or distinguish them from each other.
It is possible to add a custom attribute to the command instance, but it is not inherited when the new command is created with
next()
.The text was updated successfully, but these errors were encountered: