Skip to content

Replication sub task is stuck in the canceling state #7012

@PotentialIngenuity

Description

@PotentialIngenuity

Version
core - 3.90.0

Describe the bug

The replication task group has 1 task the is stuck in the canceling state. This stuck task is blocking all other tasks from processing.

http --verify false GET https://localhost/pulp/api/v3/task-groups/0199a5b0-3e09-742b-943c-903794dcbb07/ | jq 'del(.tasks)'
{
  "pulp_href": "/pulp/api/v3/task-groups/0199a5b0-3e09-742b-943c-903794dcbb07/",
  "prn": "prn:core.taskgroup:0199a5b0-3e09-742b-943c-903794dcbb07",
  "description": "Replication of repo05",
  "all_tasks_dispatched": false,
  "waiting": 0,
  "skipped": 0,
  "running": 0,
  "completed": 0,
  "canceled": 0,
  "failed": 0,
  "canceling": 1,
  "group_progress_reports": []
}

The specific task.

pulp task list --state canceling
[
  {
    "pulp_href": "/pulp/api/v3/tasks/0199a5b0-3e1c-7a31-b5b0-344924548223/",
    "prn": "prn:core.task:0199a5b0-3e1c-7a31-b5b0-344924548223",
    "pulp_created": "2025-10-02T16:10:15.009534Z",
    "pulp_last_updated": "2025-10-02T16:10:14.941567Z",
    "state": "canceling",
    "name": "pulpcore.app.tasks.replica.replicate_distributions",
    "logging_cid": "468e93cfbd1744589c3dbb54698f54ce",
    "created_by": "/pulp/api/v3/users/2/",
    "unblocked_at": null,
    "started_at": null,
    "finished_at": null,
    "error": null,
    "worker": null,
    "parent_task": null,
    "child_tasks": [],
    "task_group": "/pulp/api/v3/task-groups/0199a5b0-3e09-742b-943c-903794dcbb07/",
    "progress_reports": [],
    "created_resources": [],
    "reserved_resources_record": [
      "pdrn:018ccc7c-afbe-7fcf-b3ec-ac5099b3a3ea:servers",
      "shared:prn:core.domain:018ccc7c-afbe-7fcf-b3ec-ac5099b3a3ea"
    ],
    "result": null
  }
]

To Reproduce
Start a replicate and cancel all the tasks while it is processing.

Expected behavior
The task should cancel and I can start other processes.

Additional context
n/a

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions