Project

Profile

Help

Task #5100

closed

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

Added by ttereshc over 4 years ago. Updated over 3 years ago.

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

0%

Estimated time:
Platform Release:
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Quarter:

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

Actions #1

Updated by ttereshc over 4 years ago

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

Updated by ttereshc over 4 years 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

Actions #3

Updated by dkliban@redhat.com over 3 years ago

  • Status changed from NEW to CLOSED - WONTFIX

Also available in: Atom PDF