Skip to content

Allow awaiting job.stop() #976

@ehooi

Description

@ehooi

⭐ Suggestion

I believe this would be useful for building a job manager (see: #871)
and supporting graceful shutdown (see: #713).

💻 Use Cases

async stopAllJobs() {
  for (const job of jobs) {
    await job.stop();
  }
}
await Promise.all(jobs.map(job => job.stop()))

❌ Related Problems

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:featureNew feature or feature improvement & requests

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions