Actions
Story #6282
closedAs a user, I can see parent/child relationships when a task dispathes one or more other tasks
Start date:
Due date:
% Done:
100%
Estimated time:
Platform Release:
Groomed:
Yes
Sprint Candidate:
Yes
Tags:
Sprint:
Sprint 69
Quarter:
Description
A use case for pulp_ansible came up recently whereby tasks need to dispatch subtasks. It would be useful for them to see and filter on parent_task
and child_tasks
fields in the Task model.
Deliverables¶
-
parent_task
andchild_task
fields added to the [Task model[(https://github.com/pulp/pulpcore/blob/b94abcea602712c7610595078a3d26a2029725e1/pulpcore/app/models/task.py#L310). - Having these viewable on the TaskSerializer
- Having them filterable on TaskFilter
- Have the
enqueue_with_reservation
method automatically set the 'parent/child' relationship.
Background¶
We used to have this, so we need to bring it back and add tests for it with this work. Here are some PRs to reference:
- This was what we had setting 'parent' but it's incomplete https://github.com/pulp/pulpcore/pull/569
- When we removed it from the serializers before: https://github.com/pulp/pulpcore/commit/3e3ea72ac2bf0abab82a642a987122660cabc124#diff-012d87c176cc670b2ae1f9b498f8b930
Related issues
Updated by daviddavis almost 5 years ago
Shouldn't it be child_tasks
instead of child_task
? I was imagining a parent could have multiple children.
Updated by bmbouter almost 5 years ago
- Description updated (diff)
daviddavis wrote:
Shouldn't it be
child_tasks
instead ofchild_task
? I was imagining a parent could have multiple children.
+1 child_tasks
. I just updated it.
Updated by daviddavis almost 5 years ago
- Groomed changed from No to Yes
- Sprint Candidate changed from No to Yes
Updated by dalley over 4 years ago
- Status changed from NEW to ASSIGNED
- Assignee set to dalley
Updated by dalley over 4 years ago
- Status changed from ASSIGNED to POST
Updated by pulpbot over 4 years ago
Added by dalley over 4 years ago
Updated by dalley over 4 years ago
- Status changed from POST to MODIFIED
- % Done changed from 0 to 100
Applied in changeset pulpcore|0d146db0d48019a4a14884cd5e681aa7624f79df.
Updated by dalley over 4 years ago
- Related to Test #6431: Test task child/parent tracking added
Updated by ttereshc over 4 years ago
- Status changed from MODIFIED to CLOSED - CURRENTRELEASE
- Sprint/Milestone set to 3.3.0
Actions
Allow tasks to spawn other tasks
And record their relationships in the database.
closes: #6282 https://pulp.plan.io/issues/6282