Skip to content

Add event hooks for job lifecycle management in DataQueue - #31

Merged
nicnocquee merged 2 commits into
mainfrom
event-hooks
Feb 23, 2026
Merged

nicnocquee merged 2 commits into
mainfrom
event-hooks

Conversation

@nicnocquee

Copy link
Copy Markdown
Owner
  • Introduced a new section in the documentation detailing event hooks that allow users to subscribe to real-time job lifecycle events such as job:added, job:processing, job:completed, job:failed, and more.
  • Implemented methods for registering listeners (on, once, off, removeAllListeners) to manage event subscriptions effectively.
  • Enhanced the job queue functionality to emit events during job processing, cancellation, retries, and progress updates, improving observability and integration capabilities.
  • Updated tests to verify the correct emission of events and listener behavior, ensuring robust functionality across different scenarios.

These changes enhance the DataQueue system by providing users with powerful tools for monitoring and responding to job events in real-time.

- Introduced a new section in the documentation detailing event hooks that allow users to subscribe to real-time job lifecycle events such as `job:added`, `job:processing`, `job:completed`, `job:failed`, and more.
- Implemented methods for registering listeners (`on`, `once`, `off`, `removeAllListeners`) to manage event subscriptions effectively.
- Enhanced the job queue functionality to emit events during job processing, cancellation, retries, and progress updates, improving observability and integration capabilities.
- Updated tests to verify the correct emission of events and listener behavior, ensuring robust functionality across different scenarios.

These changes enhance the DataQueue system by providing users with powerful tools for monitoring and responding to job events in real-time.
@netlify

netlify Bot commented Feb 23, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for docsdataqueuedev ready!

Name Link
🔨 Latest commit 7398907
🔍 Latest deploy log https://app.netlify.com/projects/docsdataqueuedev/deploys/699cb6197c2ed0000846cd51
😎 Deploy Preview https://deploy-preview-31--docsdataqueuedev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Feb 23, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for dataqueue-demo ready!

Name Link
🔨 Latest commit 7398907
🔍 Latest deploy log https://app.netlify.com/projects/dataqueue-demo/deploys/699cb619e02cab00084f6577
😎 Deploy Preview https://deploy-preview-31--dataqueue-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

- Updated integration tests to await the processor's start method directly, removing unnecessary start/stop calls and improving test reliability.
- Enhanced the clarity of job processing flow in tests by ensuring that the processor is properly started before job retrieval and assertions.

These changes streamline the test execution and ensure accurate job processing behavior in the DataQueue system.
@nicnocquee
nicnocquee merged commit 96ca2ec into main Feb 23, 2026
10 checks passed
@nicnocquee
nicnocquee deleted the event-hooks branch February 23, 2026 20:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant