Project

Profile

Help

Task #5100

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

Added by ttereshc about 1 year ago. Updated about 1 year ago.

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

0%

Estimated time:
Platform Release:
Groomed:
No
Sprint Candidate:
No
Tags:
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 about 1 year 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 about 1 year 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