I’m trying to schedule a task depending on it’s response. The task is something like:
public Date scheduledTask() {
Date nextRun;
// ...
nextRun = something();
// ...
return nextRun;
}
How can I make sure that the same task is called again when reaching the nextRun?
Thank you.
This is very simple with standard Quartz scheduler API. Inside your
JobcomputenextRuntime and create a trigger withstartAt()defined:Tested, works like a charm.