Project

Profile

Help

Task #6773

closed

Document in plugin writer guide tasks are not safe to wait on other tasks

Added by bmbouter almost 4 years ago. Updated about 2 years ago.

Status:
CLOSED - DUPLICATE
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Platform Release:
Groomed:
No
Sprint Candidate:
No
Tags:
Documentation
Sprint:
Quarter:

Description

Ticket moved to GitHub: "pulp/pulpcore/1896":https://github.com/pulp/pulpcore/issues/1896


Background

Pulp architecturally cannot have a task that waits on another task, otherwise on systems where only 1 pulp worker is running Pulp will deadlock. Pulp workers only work on one task at a time, so here is the deadlock example:

  1. Task foo starts running
  2. Task foo dispatches task bar
  3. Task bar never starts because Task foo never finishes and there is only one worker
  4. despair

Solution

Document a new section named "tasks waiting on tasks" in the plugin writer's guide Tasks section here. It should document this.

Actions #1

Updated by fao89 almost 4 years ago

  • Tracker changed from Issue to Task
  • % Done set to 0
Actions #2

Updated by pulpbot about 2 years ago

  • Description updated (diff)
  • Status changed from NEW to CLOSED - DUPLICATE

Also available in: Atom PDF