Task #8495: [EPIC] As a user, I have a new-improved tasking system with new-style workers
Deprecate `enqueue_with_reservation` from plugin API and introduce new `dispatch` interface to replace it
pulpcore.plugin.tasking.enqueue_with_reservation interface, unfortunately, is tied to RQ because the return object is an RQ job. This prevents us from switching the implemenation away from RQ.
options keyword is RQ specific also, so we can't keep that as part of the new
dispatch function signature.
- Deprecate the
- Introduce a new interface
pulpcore.plugin.tasking.dispatchwhich will have the following function signature:
def dispatch(func, resources, args=None, kwargs=None, task_group=None):
The dispatch method will return the Task object.
dispatch call and deprecate the old one
This adds a new
pulpcore.plugin.tasking.dispatch interface which will
interface. This also deprecates the
pulpcore.plugin.tasking.enqueue_with_reservation and causes it to
emit warnings if used.
has been ported to support both the
Please register to edit this issue