metafora icon indicating copy to clipboard operation
metafora copied to clipboard

statemachine: error during sleeps should not override sleep time

Open schmichael opened this issue 9 years ago • 0 comments

Right now the following can occur:

  • Task goes to sleep at 1am until 3am
  • Task has an error at 2am*
  • Default error handler is used which retries the work at 2:10am

Now instead of running at 3am, the work has run at 2:10am.

The statemachine should make a best effort to wait until 3am to run the work.

* Yes, even sleeping work can suddenly return an error. Its command watcher could fail, or the work could get rebalanced and loading the state could fail.

schmichael avatar Mar 25 '16 17:03 schmichael