We are running Laravel 4 with supervisord / SQS and we have 30+ different tasks being run using 10 worker processes. All has been going very well however it seems that certain tasks have started to timeout. We get an exception like this:
[Symfony\Component\Process\Exception\ProcessTimedOutException]
The process ""/usr/bin/php5" artisan queue:work --queue="https://sqs.us-east- 1.amazonaws.com/xxxx" --delay=0 --memory=128 --sleep=3 --tries=0 --env=development" exceeded the timeout of 180 seconds.
I can catch this exception using this:
App::error(function(Symfony\Component\Process\Exception\ProcessTimedOutException $exception) {
/// caught!
});
However I can't seem to determine WHICH task is being run (when the timeout occurs) and even better if I can access the data which was passed to the task..
I have tried logging the exception object stack trace:
$exception->getTraceAsString()
However, this doesn't get me enough detail about the task that was called.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community