Replies: 2 comments 1 reply
-
Thank you for your compliments! My friend @nckrtl and I have been working through some horizon improvements, and the way the Server Side Up docs state how to run the queues -- this will actually cause a job to terminate early. We have a working solution, but we need to get this solution formalized yet. I am sure Horizon will be very similar to a vanilla queue. Track this issue for the latest #361 |
Beta Was this translation helpful? Give feedback.
-
To add to @jaydrogers, the solution we worked on (prevent running jobs to be interrupted during deployments) focused mainly on running Horizon indeed. But the solution we came up with is rather generic to any running process that can stop gracefully. However, queue:work is a process that runs in the foreground while horizon runs in the background. Meaning that whenever you stop queue:work you interrupt the running jobs. As far as I know there is no queue:stop variant like there is for horizon ( So I'd recommend Horizon over the regular queue worker, but you will need access to a Redis instance as it's mandatory for Horizon. |
Beta Was this translation helpful? Give feedback.
-
Thank you for creating such a great product. Currently, I plan to use Docker Swarm to run the Laravel project, but I have a question. Will scrolling through updating queue tasks cause interruptions to running tasks? Here is my docker-compose.yml
![WeChat9e153baa8e506e1572d237246799925d](https://private-user-images.githubusercontent.com/31270124/331428222-6d671727-e98e-454b-ba1f-d2daf0f549e9.jpg?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE1MTcyMjAsIm5iZiI6MTcyMTUxNjkyMCwicGF0aCI6Ii8zMTI3MDEyNC8zMzE0MjgyMjItNmQ2NzE3MjctZTk4ZS00NTRiLWJhMWYtZDJkYWYwZjU0OWU5LmpwZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MjAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzIwVDIzMDg0MFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTRhOGQwOGUxZTEyYjIwMTVkMTQ1YzRiOGQ3MDJkYmUyOTU5MzM3ZmJjYjZlZDhhNjhmYjQ0MGFiNWE4MDdiNDYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.R_gWN7jB2qC0IJQk8wxy_dBArtuuQiIXNWJ8-kIgJxc)
Beta Was this translation helpful? Give feedback.
All reactions