Project

Profile

Help

Refactor #2156

closed

Convert pulp_celerybeat to use a django lock model

Added by mhrivnak over 8 years ago. Updated almost 5 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Category:
-
Sprint/Milestone:
Start date:
Due date:
% Done:

100%

Estimated time:
Platform Release:
Groomed:
Yes
Sprint Candidate:
Yes
Tags:
Sprint:
Sprint 9
Quarter:

Description

pulp_celerybeat currently uses a mongodb collection with a uniqueness constraint to obtain a lock. Multiple processes attempt to insert a document, and the one who succeeds is the active process.

Given the lock model that has already been created in django, convert pulp_celerybeat to use it instead of the mongo model.

It's important to test that these locks are acquired and released as expected. Hand testing this by manually invoking two pulp_celerybeats and testing failover would be good.


Related issues

Blocked by Pulp - Refactor #2087: create django models for task systemCLOSED - CURRENTRELEASEpcreech

Actions

Also available in: Atom PDF