Story #4503
Updated by ttereshc over 5 years ago
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'
<pre>
{
"_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/"
}
</pre>