pulp / pulp/pulpcore

Add generic reporting ability to Task

Open
#3,155 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Feature
Dominant language
Python
Stars
598
Forks
168
Avg merge
1d 4h
Merged PRs (30d)
86

Description

Is your feature request related to a problem? Please describe.

There appears to be a general demand for tasks to report back task specific information for various use cases. Possible examples include:

Describe the solution you'd like

The idea would be for the Task model to provide some relatively generic JSON field, that plugin authors can use to report back whatever information is relevant for some given plugin use case. The field might be called something like info or report.

For example, a plugin might want to implement a dry-run sync mode, that reports back a maximum disk size that the actual sync is expected to need. A task would be started that analyzes the upstream metadata for file sizes, and reports the estimate back to the new report/info field. Users can then access the information using whatever interface the plugin author defined, perhaps something like get <task_href> | jq '.info.estimated_max_disk_size'.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Task model and review how task data is exposed through the interface described in the issue. Compare the referenced use cases and decide the generic JSON field's scope, plugin contract, and access pattern. Done means plugin authors can report arbitrary task-specific information and users can retrieve it reliably.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api, backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.