Project

Profile

Help

Issue #3819

closed

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

Added by dalley over 5 years ago. Updated over 3 years 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
Actions #1

Updated by daviddavis over 5 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.

Actions #2

Updated by CodeHeeler over 5 years ago

  • Triaged changed from No to Yes
Actions #3

Updated by bmbouter over 5 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.

Actions #4

Updated by bmbouter almost 5 years ago

  • Tags deleted (Pulp 3)
Actions #5

Updated by gerrod over 3 years 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/"
}

Also available in: Atom PDF