Skip to content

Create @h3ravel/queue package for background job processing or improve existing package #87

@3m1n3nc3

Description

@3m1n3nc3

Create @h3ravel/queue package for background job processing

Description

Introduce a new @h3ravel/queue package to manage background jobs, workers, and queue drivers.

The queue system should integrate with events and be usable independently of HTTP.

Consider taking a look at Bull/MQ


Goals

  • Support background job processing
  • Allow multiple queue drivers
  • Integrate cleanly with events and CLI

Key Features

  • Job and Queue contracts
  • Queue dispatcher
  • Worker implementation
  • Retry, delay, and failure handling
  • Optional event hooks (job started, failed, completed)

Tasks

  • Create @h3ravel/queue package
  • Define job and queue contracts
  • Implement in-memory queue driver (baseline)
  • Add worker runner
  • Integrate with Musket CLI (future)
  • Write tests for job lifecycle
  • Document queue usage

Acceptance Criteria

  • Jobs can be dispatched and processed
  • Drivers are swappable
  • No hard dependency on HTTP
  • Typed job payloads supported
  • Test coverage for core flows

Difficulty

Advanced

Metadata

Metadata

Assignees

No fields configured for Feature.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions