Project

Profile

Help

Task #5100

Provide a way for plugins to associate tasks with a specfic resource

Added by ttereshc 3 months ago. Updated 3 months ago.

Status:
NEW
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
% Done:

0%

Platform Release:
Blocks Release:
Backwards Incompatible:
No
Groomed:
No
Sprint Candidate:
No
Tags:
QA Contact:
Complexity:
Smash Test:
Verified:
No
Verification Required:
No
Sprint:

Description

There are use cases when plugins want to associate tasks with a specific resource.
E.g. a migration tool would like to track which tasks were run for a specific migration plan.

The plugin API already provides a `Task` but for adding errors to it and it's not the original model from pulpcore.
https://github.com/pulp/pulpcore-plugin/blob/master/pulpcore/plugin/tasking.py#L13

History

#1 Updated by ttereshc 3 months ago

  • Subject changed from Add Task model to the plugin API to Provide a way for plugins to associate tasks with a specfic resource

#2 Updated by ttereshc 3 months ago

I can access any model but I think it's unintentional https://github.com/pulp/pulpcore-plugin/blob/master/pulpcore/plugin/tasking.py#L3
Since all models are imported here, I can just do from pulpcore.plugin.tasking import models

Please register to edit this issue

Also available in: Atom PDF