dusterio / laravel-plain-sqs

Custom SQS connector for Laravel (or Lumen) that supports third-party, plain JSON messages
MIT License
131 stars 92 forks source link

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

Open cristiangrama opened 5 years ago

cristiangrama commented 5 years ago

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.