Project

Profile

Help

Refactor #2158

Updated by dkliban@redhat.com about 8 years ago

pulp_celerybeat (2.Y) currently loads scheduled calls from mongodb. The 3.0 MVP will It should instead load them from the new django model. 

 This does not load include any scheduled tasks REST API work. Assume the data shows up in the database "somehow". 

 Some hand testing should be done to ensure that when pulp_celerybeat uses the new models that it dispatches as expected. 

 There is a behavior differences in the new implementation from Pulp 2.y due to the database.    The code "disable after X failed tasks" feature being removed. This task is the one which removes that handles feature also. Specifically, the loading of schedule from DB scheduled_call_id logic in these places should be removed. removed    [0][1] 

 [0]:    https://github.com/pulp/pulp/blob/1331a5846297eb614bfd6fe5ffefb1914d76fad0/server/pulp/server/async/tasks.py#L503-L507 
 [1]: https://github.com/pulp/pulp/blob/1331a5846297eb614bfd6fe5ffefb1914d76fad0/server/pulp/server/async/tasks.py#L558-L559

Back