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
For example, I have a task that is executed every minute. When I start the program, cron will start to execute my task in the next minute. Can I add an option such as "Execute once now" task。
If I manually call the task once in the program, it will look very ugly, and some situations cannot be satisfied
The text was updated successfully, but these errors were encountered:
this is quite needed indeed. the AddJob(spec string, cmd Job) could be simply refactored to AddJob(spec string, cmd Job, runOnStart ...bool) to keep the backwards compatibility and the scheduler would fire the tasks one after another in the order they were added.
For example, I have a task that is executed every minute. When I start the program, cron will start to execute my task in the next minute. Can I add an option such as "Execute once now" task。
If I manually call the task once in the program, it will look very ugly, and some situations cannot be satisfied
The text was updated successfully, but these errors were encountered: