Skip to content

Set the job display name as just the class name #33

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cristiangrama
Copy link

When a job is created in Laravel it get's a display name as whatever the job class is. The job key is the handler class with the suffix @handle. For example the class SomeJob will be displayed as SomeJob@handle. In order to get the right job name for logging purposes it is better to just use the class name instead. Adding the displayName to the created job payload will take care of that.

@cristiangrama cristiangrama force-pushed the fix-displayed-job-name branch 5 times, most recently from 6715092 to ca5fdc4 Compare June 1, 2019 03:09
Excludes the `@handle` that the `job` key has.
@cristiangrama cristiangrama force-pushed the fix-displayed-job-name branch from ca5fdc4 to 6480751 Compare June 1, 2019 03:26
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.

2 participants