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
It would be nice if @Scheduled had an attribute such as runOnce=true|false and/or maxRuns=integer to control how many times a scheduled job is allowed to run.
The text was updated successfully, but these errors were encountered:
Sometimes I want to have a task that runs 1M after the app starts as well as once a day at 1AM.
Right now, there doesn't seem to be an option using
@Scheduled
to do this.A workaround is to annotate the method like this:
It would be nice if
@Scheduled
had an attribute such asrunOnce=true|false
and/ormaxRuns=integer
to control how many times a scheduled job is allowed to run.The text was updated successfully, but these errors were encountered: