Closed
Bug 1214387
Opened 9 years ago
Closed 9 years ago
[sync] Configure celery to avoid syncing the same project simultaneously
Categories
(Webtools Graveyard :: Pontoon, defect, P2)
Webtools Graveyard
Pontoon
Tracking
(firefox44 affected)
RESOLVED
FIXED
Tracking | Status | |
---|---|---|
firefox44 | --- | affected |
People
(Reporter: osmose, Assigned: jotes, Mentored)
Details
If a sync job takes a really long time, it is theoretically possible that the project will get scheduled for another sync before the first sync is finished, which will cause all sorts of problems as two sync jobs syncing the same project will share the same filesystem and overwrite their changes and so on.
We should investigate to see if celery is able to prevent a task signature identical to a currently-running signature from being scheduled or run at the same time. http://docs.celeryproject.org/en/latest/tutorials/task-cookbook.html#ensuring-a-task-is-only-executed-one-at-a-time looks like it might be a solution.
Updated•9 years ago
|
Summary: Configure celery to avoid syncing the same project simultaneously → [sync] Configure celery to avoid syncing the same project simultaneously
Updated•9 years ago
|
Priority: -- → P2
Assignee | ||
Updated•9 years ago
|
Assignee: nobody → jot
Comment 1•9 years ago
|
||
Commit pushed to master at https://github.com/mozilla/pontoon
https://github.com/mozilla/pontoon/commit/8e1a35c7d88a7dd882e4d33a47ff4326903e9c0a
Fix bug 1214387. Added decorator to run only one task at time.
Updated•9 years ago
|
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Reporter | ||
Comment 2•9 years ago
|
||
So we totally missed during review that the code as implemented made us unable to run more than one project sync task at a time, when the intent was that we should not be able to sync the same project simultaneously. We also missed that the decorator wasn't added to the repo sync task as well.
mathjazz is about to commit a fix that removes the decorator from the project sync task.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Comment 3•9 years ago
|
||
Status: REOPENED → RESOLVED
Closed: 9 years ago → 9 years ago
Resolution: --- → FIXED
Updated•4 years ago
|
Product: Webtools → Webtools Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•