Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

Merged
taylorotwell merged 1 commit into
laravel:5.2from
colinwait:5.2
May 25, 2016
Merged

[5.2] Add catch exception when connect and get job#13688
taylorotwell merged 1 commit into
laravel:5.2from
colinwait:5.2

Conversation

@colinwait
Copy link
Copy Markdown

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
Copy Markdown
Member

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

@colinwait
Copy link
Copy Markdown
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
Copy Markdown
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