Refactor #2158

Updated by bmbouter almost 8 years ago

pulp_celerybeat currently loads scheduled calls from mongodb. It should instead load them from the new django model. 

 This does not include any 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 are also two behavior differences in the new implementation from Pulp 2.y due to the "disable after X failed tasks" feature being removed. This 

 1. The scheduler no longer needs to check if a task is the one which removes that feature also. Specifically, the enabled or disabled. 
 2. The scheduled_call_id logic in these places should be removed    [0][1]