Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[10.x] Expose queue name and delay on job queue events #49833

Closed
wants to merge 1 commit into from

Conversation

stayallive
Copy link
Contributor

@stayallive stayallive commented Jan 25, 2024

Changes

Add the queue and delay property to the JobQueueing and JobQueued events.

Why?

With the introduction of the JobQueueing (#49722) we can now profile what is happening in the application when a job is being queued (for example: getsentry/sentry-laravel#833), however we only know the queue connection and job name.

It is also useful to know which queue and with what delay a job was queued since they are already available where the events are dispatched I "simply" added them to the event.

@taylorotwell
Copy link
Member

Can you send this change to master? Because I think queue name should be taken in the constructor right after connection so the order is more logical.

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.

None yet

2 participants