Project

Profile

Help

Story #4503

closed

As a user, I can see in a sync task report how much work is left to do

Added by jsherril@redhat.com about 5 years ago. Updated over 4 years ago.

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

100%

Estimated time:
Platform Release:
Groomed:
Yes
Sprint Candidate:
Yes
Tags:
Sprint:
Sprint 53
Quarter:

Description

This story should set the total in the progress report if possible.
It is likely that for RPMs there is a total number of them specified in the beginning of primary.xml.
There is no counter available right away for other content types like Errata, Modules and so on.

When syncing a large yum repo, such as http://mirror.math.princeton.edu/pub/fedora/linux/releases/28/Everything/x86_64/os/, after ~15 minutes i still see no indication of how much work is to be done for each step:

This was done using 'on_demand'

{
    "_created": "2019-03-05T16:21:56.054367Z", 
    "_href": "/pulp/api/v3/tasks/3/", 
    "created_resources": [
        null
    ], 
    "error": null, 
    "finished_at": null, 
    "job_id": "155c9a3e-4853-4c08-9c24-fa4484cb48dd", 
    "name": "pulp_rpm.app.tasks.synchronizing.synchronize", 
    "non_fatal_errors": [], 
    "parent": null, 
    "progress_reports": [
        {
            "done": 0, 
            "message": "Un-Associating Content", 
            "state": "running", 
            "suffix": "", 
            "task": "/pulp/api/v3/tasks/3/", 
            "total": null
        }, 
        {
            "done": 4, 
            "message": "Downloading and Parsing Metadata", 
            "state": "running", 
            "suffix": "", 
            "task": "/pulp/api/v3/tasks/3/", 
            "total": null
        }, 
        {
            "done": 0, 
            "message": "Downloading Artifacts", 
            "state": "running", 
            "suffix": "", 
            "task": "/pulp/api/v3/tasks/3/", 
            "total": null
        }, 
        {
            "done": 3750, 
            "message": "Associating Content", 
            "state": "running", 
            "suffix": "", 
            "task": "/pulp/api/v3/tasks/3/", 
            "total": null
        }
    ], 
    "spawned_tasks": [], 
    "started_at": "2019-03-05T16:21:56.163701Z", 
    "state": "running", 
    "worker": "/pulp/api/v3/workers/2/"
}

Related issues

Related to File Support - Issue #4895: As a user, I can see in a sync task report how much work is left to do CLOSED - CURRENTRELEASEbmbouterActions
Related to Container Support - Issue #5193: Progress presenter has tasks with no value for totalCLOSED - WONTFIXActions

Also available in: Atom PDF