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

[5.2] Add catch exception when connect and get job #13688

Merged
merged 1 commit into from
May 25, 2016

Conversation

colinwait
Copy link

Catch the Exception when get job otherwise it will keep writing error log when some exception happened and log file will become very large in a short time.

@GrahamCampbell GrahamCampbell changed the title Add catch exception when connect and get job [5.2] Add catch exception when connect and get job May 25, 2016
@taylorotwell
Copy link
Member

Why would we stop the queue worker if we get exception when trying to pop a job?

@colinwait
Copy link
Author

@taylorotwell I used redis as my queue driver and supervisor ,but when the redis-server stopped, my log file keeps recording ConnectionException with a very fast speed and soon become very large. Could it be solved like that or any other solutions?:P

@taylorotwell
Copy link
Member

To me it should just sleep, not stop.

@taylorotwell taylorotwell merged commit e53d363 into laravel:5.2 May 25, 2016
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.

2 participants