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)

defect

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.
Summary: Configure celery to avoid syncing the same project simultaneously → [sync] Configure celery to avoid syncing the same project simultaneously
Priority: -- → P2
Assignee: nobody → jot
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
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 → ---
Status: REOPENED → RESOLVED
Closed: 9 years ago9 years ago
Resolution: --- → FIXED
Product: Webtools → Webtools Graveyard
You need to log in before you can comment on or make changes to this bug.