Project

Profile

Help

Issue #3819

Orphan cleanup tasks don't have a "worker" set

Added by dalley over 2 years ago. Updated 6 months ago.

Status:
CLOSED - WORKSFORME
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:
Quarter:

Description

            "_href": "http://localhost:8000/pulp/api/v3/tasks/86ab927d-7189-496d-8e8a-52b884c3d541/",
            "created": "2018-07-05T02:11:12.938351Z",
            "created_resources": [],
            "error": null,
            "finished_at": null,
            "id": "86ab927d-7189-496d-8e8a-52b884c3d541",
            "non_fatal_errors": [],
            "parent": null,
            "progress_reports": [
                {
                    "done": 1,
                    "message": "Clean up orphan Content",
                    "state": "completed",
                    "suffix": "",
                    "task": "http://localhost:8000/pulp/api/v3/tasks/86ab927d-7189-496d-8e8a-52b884c3d541/",
                    "total": 1
                },
                {
                    "done": 1,
                    "message": "Clean up orphan Artifacts",
                    "state": "completed",
                    "suffix": "",
                    "task": "http://localhost:8000/pulp/api/v3/tasks/86ab927d-7189-496d-8e8a-52b884c3d541/",
                    "total": 1
                }
            ],
            "spawned_tasks": [],
            "started_at": null,
            "state": "completed",
            "worker": null

History

#1 Updated by daviddavis over 2 years ago

I believe we created orphan cleanup to be run by resource manager so that it would prevent other tasks from executing thus guaranteeing a global lock. We should set resource manager as the worker on this orphan cleanup task.

#2 Updated by CodeHeeler over 2 years ago

  • Triaged changed from No to Yes

#3 Updated by bmbouter over 2 years ago

I expect the resource manager who is handling the orphan cleanup task would be name shown as the worker name for orphan cleanup.

#4 Updated by bmbouter over 1 year ago

  • Tags deleted (Pulp 3)

#5 Updated by gerrod 6 months ago

  • Status changed from NEW to CLOSED - WORKSFORME

Testing on Pulpcore 3.4.0, delete oprhans sets worker

{
    "child_tasks": [],
    "created_resources": [],
    "error": null,
    "finished_at": "2020-07-09T19:09:59.506145Z",   
    "name": "pulpcore.app.tasks.orphan.orphan_cleanup",
    "parent_task": null,
    "progress_reports": [
        {
            "code": "clean-up.content",
            "done": 51,
            "message": "Clean up orphan Content",   
            "state": "completed",
            "suffix": null,
            "total": 51
        },
        {
            "code": "clean-up.content",
            "done": 54,
            "message": "Clean up orphan Artifacts", 
            "state": "completed",
            "suffix": null,
            "total": 54
        }
    ],
    "pulp_created": "2020-07-09T19:09:59.181662Z",  
    "pulp_href": "/pulp/api/v3/tasks/11ee9045-5229-4bbc-84a1-6869d1fd6b2f/",
    "reserved_resources_record": [],
    "started_at": "2020-07-09T19:09:59.232940Z",
    "state": "completed",
    "task_group": null,
    "worker": "/pulp/api/v3/workers/ef88db63-d09c-4c88-8fea-b0cc4f65d847/"
}

Please register to edit this issue

Also available in: Atom PDF