Commit Graph
11 Commits
Author SHA1 Message Date
Cédric Krier a0bfbfa255 Follow isort formatting
issue10928
2021-12-11 17:58:45 +01:00
Cédric Krier b843e4e5bf Manage errors during non-interactive operations
issue10667
review346781002
2021-09-13 23:40:28 +02:00
Cédric Krier 78bc172584 Do not push a new task on database operational error without channel
If a task is pushed again, this creates an infinite loop because the task is
appended to the transaction tasks list and so it is run again in the same
request.

issue10421
review346251002
2021-05-21 00:27:55 +02:00
Cédric Krier 05137a72a4 Add status command
issue10098
review347481002
2021-03-27 19:42:53 +01:00
Cédric Krier 158bd2f8f6 Make reschedule delay linear
An exponential factor growths too fast and so reschedule too much in the
future.

issue9428
review315631002
2020-06-27 00:54:03 +02:00
Sergi Almacellas Abellana c2ca4704db Add sleep and logging on run_task without worker
issue9325
review293701002
2020-05-22 11:25:01 +02:00
Cédric Krier ab161982e9 Reschedule task failing for operational errors
We should always try to execute them later as operational errors should be
temporary.

issue9252
review319301002
2020-04-28 00:28:06 +02:00
Nicolas Évrard 8fb13634ea Use direct access to backend classes
issue8836
review258421002
2019-12-06 17:33:47 +01:00
Cédric Krier 66a283613f Do not log as failure rollbacked tasks
A task that was added to the transaction may no more exist if the transaction
was rollbacked at some point.

issue8686
review249991002
2019-10-08 19:06:18 +02:00
Cédric Krier 0b6c923834 Add increasing delay on OperationalError
This increase the success rate of retry if the other transaction last.

issue8014
review50701002
2019-02-04 22:23:12 +01:00
Cédric Krier ae06a8bca2 Add transactional queue and workers
issue7406
review45461002
2018-07-27 09:32:28 +02:00