Skip to content

Conversation

@stayallive
Copy link
Collaborator

@stayallive stayallive commented May 28, 2020

This should fix #342.

There is only 1 edge case left. When running the sync driver and nesting queued jobs (dispatching a queue job from a dispatched job) only the scope data of the last job started is captured, this is only and issue on the sync driver (which is not a production driver, but a development one) so I'm personally fine with this.

This should work great bot in daemon mode and just queue:work mode.

I have tried a whole evening to test this, but there is no way without actually running an app and a queue worker to emulate it correctly so I do not want to add half-assed tests, this might be revisited later. I validated this works by just trying to break it using a scratch Laravel app and it seems to be working.

@stayallive stayallive added the bug label May 28, 2020
@stayallive stayallive requested a review from HazAT May 28, 2020 19:18
@stayallive stayallive self-assigned this May 28, 2020
@stayallive stayallive marked this pull request as ready for review May 28, 2020 19:34
Copy link
Member

@HazAT HazAT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thx codewise LGTM
let's wait for @arminulrich to verify

@arminulrich
Copy link

arminulrich commented May 31, 2020

Awesome! for me it solved the issue and I was able to attach extras 👍 thanks @stayallive

@stayallive
Copy link
Collaborator Author

Thanks for verifying, reporting and being patient <3

I'll try to get this released next week 👍

@stayallive stayallive merged commit 7460a08 into master May 31, 2020
@stayallive stayallive deleted the queue-fixes branch May 31, 2020 11:41
@troyharvey
Copy link

🙏 Love it. Thanks gentlemen.

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.

Scope data in queue jobs are lost

5 participants