{"action":"created","issue":{"url":"https://api.github.com/repos/laravel/framework/issues/13425","repository_url":"https://api.github.com/repos/laravel/framework","labels_url":"https://api.github.com/repos/laravel/framework/issues/13425/labels{/name}","comments_url":"https://api.github.com/repos/laravel/framework/issues/13425/comments","events_url":"https://api.github.com/repos/laravel/framework/issues/13425/events","html_url":"https://github.com/laravel/framework/pull/13425","id":152942361,"number":13425,"title":"[5.3] --timeout option for queue:work command","user":{"login":"halaei","id":7089140,"avatar_url":"https://avatars.githubusercontent.com/u/7089140?v=3","gravatar_id":"","url":"https://api.github.com/users/halaei","html_url":"https://github.com/halaei","followers_url":"https://api.github.com/users/halaei/followers","following_url":"https://api.github.com/users/halaei/following{/other_user}","gists_url":"https://api.github.com/users/halaei/gists{/gist_id}","starred_url":"https://api.github.com/users/halaei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/halaei/subscriptions","organizations_url":"https://api.github.com/users/halaei/orgs","repos_url":"https://api.github.com/users/halaei/repos","events_url":"https://api.github.com/users/halaei/events{/privacy}","received_events_url":"https://api.github.com/users/halaei/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2016-05-04T07:00:35Z","updated_at":"2016-05-04T14:11:21Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/laravel/framework/pulls/13425","html_url":"https://github.com/laravel/framework/pull/13425","diff_url":"https://github.com/laravel/framework/pull/13425.diff","patch_url":"https://github.com/laravel/framework/pull/13425.patch"},"body":"Lack of timeout is something I found dangerous for our workers. For me, calling set_time_limit() is not an option:\r\n\r\n> [Warning](http://php.net/manual/en/function.set-time-limit.php): This function has no effect when PHP is running in safe mode. There is no workaround other than turning off safe mode or changing the time limit in the php.ini. \r\n\r\nIn this PR, a solution based on alarm signal is proposed. At the moment, this is just for consideration and discussion. I will try to complete the tests and do any suggested fix or improvement.\r\nVery thanks for your time.\r\n\r\n\r\nRelated issue: [laravel/internal](https://github.com/laravel/internals/issues/75), #13372"},"comment":{"url":"https://api.github.com/repos/laravel/framework/issues/comments/216877263","html_url":"https://github.com/laravel/framework/pull/13425#issuecomment-216877263","issue_url":"https://api.github.com/repos/laravel/framework/issues/13425","id":216877263,"user":{"login":"taylorotwell","id":463230,"avatar_url":"https://avatars.githubusercontent.com/u/463230?v=3","gravatar_id":"","url":"https://api.github.com/users/taylorotwell","html_url":"https://github.com/taylorotwell","followers_url":"https://api.github.com/users/taylorotwell/followers","following_url":"https://api.github.com/users/taylorotwell/following{/other_user}","gists_url":"https://api.github.com/users/taylorotwell/gists{/gist_id}","starred_url":"https://api.github.com/users/taylorotwell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taylorotwell/subscriptions","organizations_url":"https://api.github.com/users/taylorotwell/orgs","repos_url":"https://api.github.com/users/taylorotwell/repos","events_url":"https://api.github.com/users/taylorotwell/events{/privacy}","received_events_url":"https://api.github.com/users/taylorotwell/received_events","type":"User","site_admin":false},"created_at":"2016-05-04T14:11:21Z","updated_at":"2016-05-04T14:11:21Z","body":"I think the idea here is pretty good, but one thing I don't see is how the timeout is actually being monitored? Can someone explain how the system knows if the timeout time has been exceeded. I just see you checking if $timeout > 0?"}}