spawned_tasks does not work post RQ port
Say a plugin writer defines two RQ tasks to be scheduled using the Pulp3 dispatch method enqueue_with_reservation. for example:
def one(): # assume this is task ID 12345.... enqueue_with_reservation(two, ) # the  is required part of enqueue_with_reservation, but unrelated to this problem def two(): # assume task ID 6789..... pass
As a user, I expect that because the plugin writer dispatched task 6789.... from inside task 12345.... that when listing the task details of 12345.... that I would see:
Instead I see:
The issue is that the enqueue_with_reservation code doesn't check if it's running inside a task, and if so, save the new task as a foreign key from this Task.
#1 Updated by bmbouter over 2 years ago
- Status changed from NEW to ASSIGNED
- Assignee set to bmbouter
- Sprint set to Sprint 43
This is a blocker for pulp_ansible work that is trying to use this two-task design for its import process. Adding to sprint to unblock that work after talking on irc w/ @daviddavis.
Please register to edit this issue