Skip to content

Conversation

@cyrilmanuel
Copy link

@cyrilmanuel cyrilmanuel commented Nov 4, 2025

We found that if a cron job executed this validate_picking method on a task and it failed for some reason, when the action was restarted, the lock was not released because the code attempted to perform an operation after locking (meaning that the lock would be released by the ~20m timeout defined in the database).

case of error or rollback, the data will return on the self.env.cr.savepoint() that mean the lock will rest as it is because the update was not made and the retry of the job will retry to do all the method.

performance issue.

Copy link

@rrebollo rrebollo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review. LGTM!
Would you be so kind to review mine back? #194

@OCA-git-bot
Copy link
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants