Project

Profile

Help

Story #6282

As a user, I can see parent/child relationships when a task dispathes one or more other tasks

Added by bmbouter 8 months ago. Updated 6 months ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Category:
-
Sprint/Milestone:
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

  1. parent_task and child_task fields added to the [Task model[(https://github.com/pulp/pulpcore/blob/b94abcea602712c7610595078a3d26a2029725e1/pulpcore/app/models/task.py#L310).
  2. Having these viewable on the TaskSerializer
  3. Having them filterable on TaskFilter
  4. 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:


Related issues

Related to Pulp - Test #6431: Test task child/parent trackingNEW<a title="Actions" class="icon-only icon-actions js-contextmenu" href="#">Actions</a>

Associated revisions

Revision 0d146db0 View on GitHub
Added by dalley 7 months ago

Allow tasks to spawn other tasks

And record their relationships in the database.

closes: #6282 https://pulp.plan.io/issues/6282

History

#1 Updated by daviddavis 8 months ago

Shouldn't it be child_tasks instead of child_task? I was imagining a parent could have multiple children.

#2 Updated by bmbouter 8 months ago

  • Description updated (diff)

daviddavis wrote:

Shouldn't it be child_tasks instead of child_task? I was imagining a parent could have multiple children.

+1 child_tasks. I just updated it.

#3 Updated by daviddavis 8 months ago

  • Groomed changed from No to Yes
  • Sprint Candidate changed from No to Yes

#4 Updated by rchan 7 months ago

  • Sprint set to Sprint 69

#5 Updated by dalley 7 months ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to dalley

#6 Updated by dalley 7 months ago

  • Status changed from ASSIGNED to POST

#8 Updated by dalley 7 months ago

  • Status changed from POST to MODIFIED
  • % Done changed from 0 to 100

#9 Updated by dalley 7 months ago

  • Related to Test #6431: Test task child/parent tracking added

#10 Updated by ttereshc 6 months ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE
  • Sprint/Milestone set to 3.3.0

Please register to edit this issue

Also available in: Atom PDF