Project

Profile

Help

Issue #4863

task status api returns task href with each progress report

Added by dkliban@redhat.com 5 months ago. Updated 4 months ago.

Status:
MODIFIED
Priority:
Normal
Assignee:
Category:
-
Sprint/Milestone:
Start date:
Due date:
Severity:
2. Medium
Version:
Platform Release:
Blocks Release:
OS:
Backwards Incompatible:
No
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
QA Contact:
Complexity:
Smash Test:
Verified:
No
Verification Required:
No
Sprint:
Sprint 54

Description

The task href is repeated many times - once for each progress report.

{
    "_created": "2019-05-21T18:36:14.342250Z",
    "_href": "/pulp/api/v3/tasks/7ac04647-0f7f-4eb6-acce-35f9b669d8dc/",
    "created_resources": [
        "/pulp/api/v3/repositories/8cd415a6-c6f5-4164-9253-183c81baff0e/versions/1/" 
    ],
    "error": null,
    "finished_at": "2019-05-21T18:36:47.553881Z",
    "name": "pulp_docker.app.tasks.synchronize.synchronize",
    "non_fatal_errors": [],
    "parent": null,
    "progress_reports": [
        {
            "done": 1,
            "message": "Downloading tag list",
            "state": "completed",
            "suffix": "",
            "task": "/pulp/api/v3/tasks/7ac04647-0f7f-4eb6-acce-35f9b669d8dc/",
            "total": 1
        },
        {
            "done": 442,
            "message": "Downloading Artifacts",
            "state": "completed",
            "suffix": "",
            "task": "/pulp/api/v3/tasks/7ac04647-0f7f-4eb6-acce-35f9b669d8dc/",
            "total": 442
        },
        {
            "done": 1581,
            "message": "Associating Content",
            "state": "completed",
            "suffix": "",
            "task": "/pulp/api/v3/tasks/7ac04647-0f7f-4eb6-acce-35f9b669d8dc/",
            "total": 1581
        },

Associated revisions

Revision 7a75fae9 View on GitHub
Added by ppicka 5 months ago

Hide task href in each progress

Do not show task href in every underlaying progress report.

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

Signed-off-by: Pavel Picka <>

History

#1 Updated by CodeHeeler 5 months ago

  • Triaged changed from No to Yes
  • Sprint set to Sprint 53

#2 Updated by ppicka 5 months ago

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

#3 Updated by amacdona@redhat.com 5 months ago

  • Sprint changed from Sprint 53 to Sprint 54

#4 Updated by ppicka 5 months ago

  • Status changed from ASSIGNED to POST

https://github.com/pulp/pulpcore/pull/163

I didn't find any task using only progress report but please check too. To not end up with some task which doesn't return any task href.

#5 Updated by ppicka 4 months ago

  • Status changed from POST to MODIFIED

Please register to edit this issue

Also available in: Atom PDF