cubicweb-worker #3685438 Handle temporary failures [open]

Sometimes a task may fail for temporary reasons (for example sending a mail).

The temporary failure could be signaled by raising an exception (say, TemporaryFailure). Then the worker behavior would be:

  • Change the task status to 'temporaryfailure'.
  • Estimate if and when the task should be attempted again. Several parameters can help to do that :
    • maximum attempts number
    • time between two attempts : can be augmented or multiplied at each attempt to avoid too many attempts when the failure is long.
prioritynormal
typeenhancement
done in<not specified>
closed by<not specified>