Issue 10747

Title
Concurrent creation of account.journal.period
Priority
feature
Status
in-progress
Nosy list
nicoe, reviewbot
Assigned to
nicoe
Keywords
review

Created on 2021-09-13.17:23:09 by nicoe, last changed 3 months ago by reviewbot.

Messages

Author: [hidden] (nicoe) Tryton committer
Date: 2021-09-13.17:23:09

In case of use in a concurrent environment the pattern we use in check_journal_period_modify which search for a journal then creates it if necessary result in SQLConstraintError because we have a unique constraint.

We should lock the database to allow to replay the transaction after a while which should be enough for the creation of the Period Journal object to happen.

History
Date User Action Args
2021-09-30 18:11:11reviewbotsetmessages: + msg70530
2021-09-16 18:50:39reviewbotsetmessages: + msg70153
2021-09-13 17:49:26reviewbotsetmessages: + msg70056
nosy: + reviewbot
2021-09-13 17:23:09nicoecreate

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