Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[17.0][Question] Does job queue lock the related record in the database? #706

Open
orfisko opened this issue Nov 5, 2024 · 0 comments
Open

Comments

@orfisko
Copy link

orfisko commented Nov 5, 2024

When using queue job (thanks btw, excellent addon) I notice that I get these errors quite often:
2024-10-23 06:52:13,986 21661 ERROR kastenman odoo.sql_db: bad query: UPDATE "product_product" SET "write_date" = '2024-10-23 06:51:40.258346', "write_uid" = 1 WHERE id IN (9350)
ERROR: could not serialize access due to concurrent update

Thing is, I use job queue to fetch an image from a website that takes a couple of seconds to load, so there is a relatively long time between the beginning of the job and the end. In the meantime, all sorts of other changes could happen on the related product product model record.
So, can someone tell me whether this is potentially due to queue job and, hence, I should seek to shorten the time needed to run the job?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant