Issue 10788

Title
Cron lock released if cron task commits
Priority
bug
Status
resolved
Nosy list
ced, reviewbot, roundup-bot
Assigned to
ced
Keywords
review

Created on 2021-09-24.10:45:25 by ced, last changed 2 weeks ago by roundup-bot.

Messages

New changeset 1c5d782c036c by Cédric Krier in branch 'default':
Use new transaction to run cron task
https://hg.tryton.org/tryton-env/rev/1c5d782c036c
New changeset 17e56b26f999 by Cédric Krier in branch 'default':
Use new transaction to run cron task
https://hg.tryton.org/trytond/rev/17e56b26f999
Author: [hidden] (ced) Tryton committer Tryton translator
Date: 2021-09-24.10:45:25

The cron task could commit the transaction which will release the locks on the table and thus we loose the property that a task is run only once at a time by the cron. And also the next_call could then also fail.
So I think we must use a new transaction to run the task.

History
Date User Action Args
2021-10-03 00:38:05roundup-botsetmessages: + msg70578
2021-10-03 00:37:56roundup-botsetmessages: + msg70577
nosy: + roundup-bot
status: testing -> resolved
2021-09-24 10:51:31reviewbotsetmessages: + msg70374
nosy: + reviewbot
2021-09-24 10:46:11cedsetkeyword: + review
reviews: 354071002
status: in-progress -> testing
2021-09-24 10:45:25cedcreate

Showing 10 items. Show all history (warning: this could be VERY long)