{"action":"created","issue":{"url":"https://api.github.com/repos/yiisoft/yii2-queue/issues/207","repository_url":"https://api.github.com/repos/yiisoft/yii2-queue","labels_url":"https://api.github.com/repos/yiisoft/yii2-queue/issues/207/labels{/name}","comments_url":"https://api.github.com/repos/yiisoft/yii2-queue/issues/207/comments","events_url":"https://api.github.com/repos/yiisoft/yii2-queue/issues/207/events","html_url":"https://github.com/yiisoft/yii2-queue/issues/207","id":295426206,"number":207,"title":"worker stop after first attempt on db driver","user":{"login":"farmani","id":1329580,"avatar_url":"https://avatars3.githubusercontent.com/u/1329580?v=4","gravatar_id":"","url":"https://api.github.com/users/farmani","html_url":"https://github.com/farmani","followers_url":"https://api.github.com/users/farmani/followers","following_url":"https://api.github.com/users/farmani/following{/other_user}","gists_url":"https://api.github.com/users/farmani/gists{/gist_id}","starred_url":"https://api.github.com/users/farmani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/farmani/subscriptions","organizations_url":"https://api.github.com/users/farmani/orgs","repos_url":"https://api.github.com/users/farmani/repos","events_url":"https://api.github.com/users/farmani/events{/privacy}","received_events_url":"https://api.github.com/users/farmani/received_events","type":"User","site_admin":false},"labels":[{"id":472281516,"url":"https://api.github.com/repos/yiisoft/yii2-queue/labels/type:bug","name":"type:bug","color":"e102d8","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/yiisoft/yii2-queue/milestones/5","html_url":"https://github.com/yiisoft/yii2-queue/milestone/5","labels_url":"https://api.github.com/repos/yiisoft/yii2-queue/milestones/5/labels","id":2910022,"number":5,"title":"2.0.3","description":"","creator":{"login":"samdark","id":47294,"avatar_url":"https://avatars2.githubusercontent.com/u/47294?v=4","gravatar_id":"","url":"https://api.github.com/users/samdark","html_url":"https://github.com/samdark","followers_url":"https://api.github.com/users/samdark/followers","following_url":"https://api.github.com/users/samdark/following{/other_user}","gists_url":"https://api.github.com/users/samdark/gists{/gist_id}","starred_url":"https://api.github.com/users/samdark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samdark/subscriptions","organizations_url":"https://api.github.com/users/samdark/orgs","repos_url":"https://api.github.com/users/samdark/repos","events_url":"https://api.github.com/users/samdark/events{/privacy}","received_events_url":"https://api.github.com/users/samdark/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":3,"state":"open","created_at":"2017-11-13T19:50:55Z","updated_at":"2018-02-21T22:22:32Z","due_on":null,"closed_at":null},"comments":9,"created_at":"2018-02-08T08:39:41Z","updated_at":"2018-02-22T08:57:11Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"I see this in supervisor log when an error happen it seems for db driver when an error occurred it cannot attempt next time because of this \r\n\r\n```\r\n2018-02-05 15:00:32 [pid: 10761] - Worker is stopped (0:00:00)\r\nPHP Warning 'yii\\base\\ErrorException' with message 'sleep() expects parameter 1 to be integer, string given'\r\n\r\nin /project/vendor/yiisoft/yii2-queue/src/drivers/db/Queue.php:91\r\n\r\nStack trace:\r\n#0 /project/vendor/yiisoft/yii2-queue/src/cli/Queue.php(108): yii\\queue\\db\\Queue->yii\\queue\\db\\{closure}()\r\n#1 /project/vendor/yiisoft/yii2-queue/src/cli/Queue.php(108): ::call_user_func:{/project/vendor/yiisoft/yii2-queue/src/cli/Queue.php:108}()\r\n#2 /project/vendor/yiisoft/yii2-queue/src/drivers/db/Queue.php(94): yii\\queue\\db\\Queue->runWorker()\r\n#3 /project/vendor/yiisoft/yii2-queue/src/drivers/db/Command.php(68): yii\\queue\\db\\Queue->run()\r\n#4 /project/vendor/yiisoft/yii2/base/InlineAction.php(57): yii\\queue\\db\\Command->actionListen()\r\n#5 /project/vendor/yiisoft/yii2/base/InlineAction.php(57): ::call_user_func_array:{/project/vendor/yiisoft/yii2/base/InlineAction.php:57}()\r\n#6 /project/vendor/yiisoft/yii2/base/Controller.php(157): yii\\base\\InlineAction->runWithParams()\r\n#7 /project/vendor/yiisoft/yii2/console/Controller.php(135): yii\\queue\\db\\Command->runAction()\r\n#8 /project/vendor/yiisoft/yii2/base/Module.php(528): yii\\queue\\db\\Command->runAction()\r\n#9 /project/vendor/yiisoft/yii2/console/Application.php(180): yii\\console\\Application->runAction()\r\n#10 /project/vendor/yiisoft/yii2/console/Application.php(147): yii\\console\\Application->runAction()\r\n#11 /project/vendor/yiisoft/yii2/base/Application.php(386): yii\\console\\Application->handleRequest()\r\n#12 /project/yii(20): yii\\console\\Application->run()\r\n#13 {main}\r\n```"},"comment":{"url":"https://api.github.com/repos/yiisoft/yii2-queue/issues/comments/367610493","html_url":"https://github.com/yiisoft/yii2-queue/issues/207#issuecomment-367610493","issue_url":"https://api.github.com/repos/yiisoft/yii2-queue/issues/207","id":367610493,"user":{"login":"zhuravljov","id":1656851,"avatar_url":"https://avatars0.githubusercontent.com/u/1656851?v=4","gravatar_id":"","url":"https://api.github.com/users/zhuravljov","html_url":"https://github.com/zhuravljov","followers_url":"https://api.github.com/users/zhuravljov/followers","following_url":"https://api.github.com/users/zhuravljov/following{/other_user}","gists_url":"https://api.github.com/users/zhuravljov/gists{/gist_id}","starred_url":"https://api.github.com/users/zhuravljov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhuravljov/subscriptions","organizations_url":"https://api.github.com/users/zhuravljov/orgs","repos_url":"https://api.github.com/users/zhuravljov/repos","events_url":"https://api.github.com/users/zhuravljov/events{/privacy}","received_events_url":"https://api.github.com/users/zhuravljov/received_events","type":"User","site_admin":false},"created_at":"2018-02-22T08:57:11Z","updated_at":"2018-02-22T08:57:11Z","author_association":"MEMBER","body":">@zhuravljov they ran with supervisord with this command\r\n>```\r\n>/usr/bin/php /www/project/yii queue/listen --verbose=1 --color=0\r\n>```\r\n\r\nYes, it is correct command.\r\n\r\nI'm not sure that casting will solve the issue, because cause of the bug is still undefined."}}
{"actor":{"display_login":"zhuravljov"}}