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

'@handle' is not included in the job payload #31

Open
shawnm0705 opened this issue Apr 11, 2019 · 1 comment
Open

'@handle' is not included in the job payload #31

shawnm0705 opened this issue Apr 11, 2019 · 1 comment

Comments

@shawnm0705
Copy link

In DispatcherJob.php::getPayload(), it doesn't add '@handle' at the end.

Although in Queue.php::modifyPayload() it adds '@handle' at the end, in Queue.php::pushRaw() it assigns $payload = $payload['data'], so at last the $payload['job'] doesn't have '@handle' anymore, which cause the problem that the queue message can't be handled.

@cristiangrama
Copy link

I thought that the handle will be added only when you pop the job from the queue. Since you are storing a plain sqs job you will not store anything related to the job as Laravel standard jobs do. That means that even if handle is not in the payload it will be added when the job is popped from the queue and prepared to be processed in Queue.php::modifyPayload().

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

No branches or pull requests

2 participants