What are the Slack Archives?
It’s a history of our time together in the Slack Community! There’s a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.
Because this space is not active, you won’t be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..
Salut everyone, We have noticed some instability while starting using `--stop-when-empty` option on
Salut everyone,
We have noticed some instability while starting using --stop-when-empty
option on console queue:worker:start
instead of deprecated configuration for keeping work loop, see demo shop commit https://github.com/spryker-shop/b2b-demo-shop/commit/71377ecb7ff423168ab1e278ad62ffa809ccd2f1
The instability about having Jenkins job running infinitely even though there are no events on RabbitMQ, moreover sometimes store has events but they are not processed as dedicated Jenkins job seems finished right after run, like there are nothing to proceed.
Comments
-
We have seen this too on our project. I suspect it is something to do with slow queue workers (when you have more than the normal demodata)
0 -
Hello Sergii,
You should not use
--stop-when-empty
for background jobs.QUEUE_WORKER_LOOP was deprecated and replaced with
--stop-when-empty
and should be used only for CI purposes or manually in local env.P.S. Also QUEUE_WORKER_LOOP=true should not be used in background jobs as well.
0 -
Thank you for your replay Mike! Ok then should we remove "stop-when-empty" from our Jenkins job configuration without setting "QUEUE_WORKER_LOOP" back to our config?
0 -
Right. At that point q:w:s will be run for 1 minute only.
0 -
Ok, thank you for your help.
0 -
You’re welcome!
0
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 75 Spryker News
- 924 Developer Corner
- 783 Spryker Development
- 88 Spryker Dev Environment
- 362 Spryker Releases
- 3 Oryx frontend framework
- 35 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 25 Job Opportunities
- 3.2K 📜 Slack Archives
- 116 Academy
- 5 Business Users
- 370 Docker
- 551 Slack General
- 2K Help
- 75 Knowledge Sharing
- 6 Random Stuff
- 4 Code Testing
- 32 Product & Business Questions
- 70 Spryker Safari Questions
- 50 Random