Skip to content

Document spawn_cpu limitations and audit usage #7637

Description

@wjones127

In #7423, we found that spawn_cpu() could cause deadlocks on low-cpu systems when used improperly. We need to write out some rules for when it should be used, which is basically:

  • No channels
  • No IO
  • No locks

(It should just consume CPU and finish, never waiting on anything else.)

There might be other places where we have similar issues, so we should audit all call sites for this.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingcritical-fixBugs that cause crashes, security vulnerabilities, or incorrect data.

Type

Fields

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions