Project

Profile

Help

Issue #4863

closed

task status api returns task href with each progress report

Added by dkliban@redhat.com almost 5 years ago. Updated over 4 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Category:
-
Sprint/Milestone:
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Sprint 54
Quarter:

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
        },
Actions #1

Updated by CodeHeeler almost 5 years ago

  • Triaged changed from No to Yes
  • Sprint set to Sprint 53
Actions #2

Updated by ppicka almost 5 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to ppicka
Actions #3

Updated by amacdona@redhat.com almost 5 years ago

  • Sprint changed from Sprint 53 to Sprint 54

Added by ppicka almost 5 years ago

Revision 7a75fae9 | View on GitHub

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

Actions #4

Updated by ppicka almost 5 years 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.

Actions #5

Updated by ppicka almost 5 years ago

  • Status changed from POST to MODIFIED
Actions #6

Updated by bmbouter over 4 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Also available in: Atom PDF