Open
Description
we used the @retryable annotation in a project recently and added a backoff of like one day to our decently long running job , due to the implementation with Thread.sleep this meant that no other scheduled jobs would trigger , which i tihnk isnt generally an expected behaviour , instead it should
- be dcoumented on @Retryableand its backoff property ,@backoff and its delay property (in all caps if need be) that this sleeps the Thread
- the default implementation should be
TimerTask task = new TimerTask() {
public void run() {
System.out.println("Task performed on: " + new Date() + "n" +
"Thread's name: " + Thread.currentThread().getName());
}
};
Timer timer = new Timer("Timer");
long delay = 1000L;
timer.schedule(task, delay);
}
or another similar nonblocking implemenation
Metadata
Metadata
Assignees
Labels
No labels