Replies: 4 comments 1 reply
-
It's a possibility to achieve this behavior only when I force a run manually using below code: class SchedulerService {
public void run(String taskName) {
log.debug("Run task '{}'", taskName);
getRecurringTask(taskName).ifPresent(recurringTask -> scheduler.reschedule(TaskInstanceId.of(taskName, RecurringTask.INSTANCE), Instant.now()));
}
private Optional<RecurringTask<?>> getRecurringTask(String taskName) {
return schedulerTasks.stream().filter(recurringTask -> recurringTask.getName().equals(taskName)).findFirst();
}
} |
Beta Was this translation helpful? Give feedback.
-
So, my concrete question is: can I force the execution of a task and to have |
Beta Was this translation helpful? Give feedback.
-
I see now that I have created an issue on this topic in the past 😄. |
Beta Was this translation helpful? Give feedback.
-
I can agree that a |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a custom task like this:
I observed that
executionContext.getExecution().lastSuccess
is NULL inside ofexecuteRecurringly
method.Before executing the method in the db I have a value not null for this field.
I use version 11.6
The problem is I do some business with this value and I need a lastSuccess != null.
In the past I used version 10.5 without and problem(I'm not sure here).Beta Was this translation helpful? Give feedback.
All reactions