Project

Profile

Help

Refactor #2158

Updated by bmbouter over 4 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]

[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