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

Workflow stuck. No more job in queue. #173

Closed
zsinryu opened this issue Apr 16, 2024 · 2 comments · Fixed by #179
Closed

Workflow stuck. No more job in queue. #173

zsinryu opened this issue Apr 16, 2024 · 2 comments · Fixed by #179

Comments

@zsinryu
Copy link

zsinryu commented Apr 16, 2024

Sometime, the workflow stuck and not processing.
Please check this repo https://github.com/zsinryu/laravel-workflow-parallel

  1. Clone .env.example to .env
  2. ./vendor/bin/sail up
  3. Open 3 terminals, 2 for php artisan queue:work for simulate multi workers. And use the last terminal for test command php artisan workflow:test
  4. There are about 30% percent the error will happen. So try to run the test command few times.
image
@rmcdaniel
Copy link
Contributor

@zsinryu Can you test this fix when you get a chance? I have tested it myself and it seems to fix the issue.

@zsinryu
Copy link
Author

zsinryu commented May 19, 2024

Thanks a lot @rmcdaniel . Look like it is fixed. Also tested and not able to reproduce now with new code.
We will test more on our real server later when the code merged.

Thanks again

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 a pull request may close this issue.

2 participants