Actions
Issue #3003
closedsync progress only updates after first item and after all items are processed
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 26
Quarter:
Description
I synced a repo with 3696 files in it. The progress report for "Add Content" showed 1 done for the duration of the sync. After the sync finished, the number done changed to 3696. I expect the number of Done to be updated throughout the sync.
[vagrant@pulp3 pulp]$ http POST http://localhost:1234/api/v3/repositories/ name=mycoolrepo
[vagrant@pulp3 pulp]$ http POST http://localhost:1234/api/v3/repositories/mycoolrepo/importers/file/ name=mycoolimporter download_policy='immediate' feed_url='https://www.redhat.com/security/data/oval/PULP_MANIFEST' repository='http://localhost:1234/api/v3/repositories/mycoolrepo/'
[vagrant@pulp3 pulp]$ http POST http://localhost:1234/api/v3/repositories/mycoolrepo/importers/file/mycoolimporter/sync/HTTP/1.0 202 Accepted
Allow: POST, OPTIONS
Content-Length: 135
Content-Type: application/json
Date: Fri, 08 Sep 2017 13:41:52 GMT
Server: WSGIServer/0.2 CPython/3.5.4
Vary: Accept, Cookie
X-Frame-Options: SAMEORIGIN
[
{
"_href": "http://localhost:1234/api/v3/tasks/943cc692-c4bc-441d-8b20-54095e0bf7d0/",
"task_id": "943cc692-c4bc-441d-8b20-54095e0bf7d0"
}
]
[vagrant@pulp3 pulp]$ http :1234/api/v3/tasks/943cc692-c4bc-441d-8b20-54095e0bf7d0/
HTTP/1.0 200 OK
Allow: GET, OPTIONS
Content-Length: 503
Content-Type: application/json
Date: Fri, 08 Sep 2017 13:41:58 GMT
Server: WSGIServer/0.2 CPython/3.5.4
Vary: Accept, Cookie
X-Frame-Options: SAMEORIGIN
{
"_href": "http://localhost:1234/api/v3/tasks/943cc692-c4bc-441d-8b20-54095e0bf7d0/",
"error": null,
"finished_at": null,
"group": null,
"non_fatal_errors": [],
"parent": null,
"progress_reports": [
{
"done": 1,
"message": "Add Content",
"state": "running",
"suffix": "",
"task": "http://localhost:1234/api/v3/tasks/943cc692-c4bc-441d-8b20-54095e0bf7d0/",
"total": 3696
}
],
"started_at": "2017-09-08T13:41:52.060540Z",
"state": "running",
"tags": [],
"worker": "http://localhost:1234/api/v3/workers/reserved_resource_worker_2@pulp3.dev/"
}
Updated by jortel@redhat.com about 7 years ago
- Status changed from NEW to ASSIGNED
- Assignee set to jortel@redhat.com
Updated by dkliban@redhat.com about 7 years ago
This only happens with pulp_file. I suspect the problem is somewhere in the ChangeSet.
Added by jortel@redhat.com about 7 years ago
Added by jortel@redhat.com about 7 years ago
Revision 24af39ee | View on GitHub
Fix progress save() throttling. closes #3003
Updated by jortel@redhat.com about 7 years ago
- Status changed from ASSIGNED to MODIFIED
Applied in changeset pulp|24af39eeed697540caf15c0b915bf6b1e2138d1c.
Updated by bmbouter almost 5 years ago
- Status changed from MODIFIED to CLOSED - CURRENTRELEASE
Actions
Fix progress save() throttling. closes #3003