Project

Profile

Help

Issue #3003

closed

sync progress only updates after first item and after all items are processed

Added by dkliban@redhat.com about 7 years ago. Updated almost 5 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
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/"
}
Actions #1

Updated by amacdona@redhat.com about 7 years ago

  • Triaged changed from No to Yes
Actions #2

Updated by mhrivnak about 7 years ago

  • Sprint/Milestone set to 45
Actions #3

Updated by jortel@redhat.com about 7 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to jortel@redhat.com
Actions #4

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

Revision 24af39ee | View on GitHub

Fix progress save() throttling. closes #3003

Added by jortel@redhat.com about 7 years ago

Revision 24af39ee | View on GitHub

Fix progress save() throttling. closes #3003

Actions #5

Updated by jortel@redhat.com about 7 years ago

  • Status changed from ASSIGNED to MODIFIED
Actions #6

Updated by bmbouter over 6 years ago

  • Sprint set to Sprint 26
Actions #7

Updated by bmbouter over 6 years ago

  • Sprint/Milestone deleted (45)
Actions #8

Updated by daviddavis over 5 years ago

  • Sprint/Milestone set to 3.0.0
Actions #9

Updated by bmbouter over 5 years ago

  • Tags deleted (Pulp 3)
Actions #10

Updated by bmbouter almost 5 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Also available in: Atom PDF