Cédric Krier pushed to branch branch/default at Tryton / Tryton


Commits:
cc2a8f4b by Cédric Krier at 2024-05-07T19:44:35+02:00
Lock only running cron record

A single transaction is used to lock, run and update the cron record.
Only the cron run is locked so other cron processes could run other cron
tasks.
When fixing transaction, we ensure that the same cron record is selected again
otherwise we restart with an empty transaction setup the selection process.
If a cron record fails to execute, it is ignored from the selection for this
run.
The run stops once there is no cron record that can be selected.

Closes #13158
- - - - -
71fe3619 by Cédric Krier at 2024-04-03T16:28:22+02:00
Use process pool to run cron

Closes #13053
- - - - -
b0d5622f by Cédric Krier at 2024-04-03T16:30:46+02:00
Compute next call of cron task using actual now

If the cron task took more time then the repeating delay, it is not useful to
reschedule it in the past.
- - - - -
4e52279d by Cédric Krier at 2024-05-08T10:07:09+02:00
Try to update next call of skipped cron tasks
- - - - -


5 changed files:

- trytond/CHANGELOG
- trytond/bin/trytond-cron
- trytond/trytond/commandline.py
- trytond/trytond/cron.py
- trytond/trytond/ir/cron.py


View it on Heptapod: 
https://foss.heptapod.net/tryton/tryton/-/compare/810872ca24cfaa276cdabe18a9e439775214147b...4e52279dbdf1085fe68fe129d7d5dff2464f9897

-- 
View it on Heptapod: 
https://foss.heptapod.net/tryton/tryton/-/compare/810872ca24cfaa276cdabe18a9e439775214147b...4e52279dbdf1085fe68fe129d7d5dff2464f9897
You're receiving this email because of your account on foss.heptapod.net.


Reply via email to