Convert pulp_resource_manager to use a django lock model
pulp_resource_manager 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_resource_manager 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_resource_managers and testing failover would be good.
NOTE: Work done with issue #2154 removed
- this codepath from the 3.0-dev branch That codepath and any necessary supporting codepaths should be added to the signal in pulp.tasking.celery_app
- this codepath from the 3.0-dev branch. That logic needs to be added back to pulp.tasking.base:delete_worker function.
Updated by fdobrovo about 7 years ago
- Status changed from POST to MODIFIED
I accidently have written wrong issue number into the commit reference to it is here: