{"action":"created","issue":{"url":"https://api.github.com/repos/craftcms/cms/issues/3328","repository_url":"https://api.github.com/repos/craftcms/cms","labels_url":"https://api.github.com/repos/craftcms/cms/issues/3328/labels{/name}","comments_url":"https://api.github.com/repos/craftcms/cms/issues/3328/comments","events_url":"https://api.github.com/repos/craftcms/cms/issues/3328/events","html_url":"https://github.com/craftcms/cms/issues/3328","id":364378273,"node_id":"MDU6SXNzdWUzNjQzNzgyNzM=","number":3328,"title":"Craft is unable to execute some background tasks if ignore_user_abort is disabled","user":{"login":"justdoweb-be","id":878879,"node_id":"MDQ6VXNlcjg3ODg3OQ==","avatar_url":"https://avatars1.githubusercontent.com/u/878879?v=4","gravatar_id":"","url":"https://api.github.com/users/justdoweb-be","html_url":"https://github.com/justdoweb-be","followers_url":"https://api.github.com/users/justdoweb-be/followers","following_url":"https://api.github.com/users/justdoweb-be/following{/other_user}","gists_url":"https://api.github.com/users/justdoweb-be/gists{/gist_id}","starred_url":"https://api.github.com/users/justdoweb-be/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justdoweb-be/subscriptions","organizations_url":"https://api.github.com/users/justdoweb-be/orgs","repos_url":"https://api.github.com/users/justdoweb-be/repos","events_url":"https://api.github.com/users/justdoweb-be/events{/privacy}","received_events_url":"https://api.github.com/users/justdoweb-be/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-09-27T09:15:32Z","updated_at":"2018-10-01T10:44:47Z","closed_at":"2018-10-01T10:44:47Z","author_association":"NONE","body":"### Description\r\n\r\nMy CraftCMS instance report me an unknown error (red box on top of admin panel) while trying to delete stale template caches. Many backgrounds tasks stay with a pending status while working on content.\r\n\r\n<img width=\"386\" alt=\"screenshot 2018-09-27 at 11 06 19\" src=\"https://user-images.githubusercontent.com/878879/46135423-6d795400-c245-11e8-97c3-a7d79e69b5f5.png\">\r\n\r\nMaybe we can add a check on system report's page to see if the function **ignore_user_abort** is available or not.\r\n\r\n### Steps to reproduce\r\n\r\n1. Disable ignore_user_abort in php configuration.\r\n2. Edit an entry and save it.\r\n\r\n### Additional info\r\n\r\n- Craft version:Craft Pro 3.0.25\r\n- PHP version:7.2.8\r\n- Database driver & version:MySQL 5.5.5\r\n- Plugins & versions: Seems not relevant in this case"},"comment":{"url":"https://api.github.com/repos/craftcms/cms/issues/comments/425864315","html_url":"https://github.com/craftcms/cms/issues/3328#issuecomment-425864315","issue_url":"https://api.github.com/repos/craftcms/cms/issues/3328","id":425864315,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNTg2NDMxNQ==","user":{"login":"brandonkelly","id":47792,"node_id":"MDQ6VXNlcjQ3Nzky","avatar_url":"https://avatars1.githubusercontent.com/u/47792?v=4","gravatar_id":"","url":"https://api.github.com/users/brandonkelly","html_url":"https://github.com/brandonkelly","followers_url":"https://api.github.com/users/brandonkelly/followers","following_url":"https://api.github.com/users/brandonkelly/following{/other_user}","gists_url":"https://api.github.com/users/brandonkelly/gists{/gist_id}","starred_url":"https://api.github.com/users/brandonkelly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brandonkelly/subscriptions","organizations_url":"https://api.github.com/users/brandonkelly/orgs","repos_url":"https://api.github.com/users/brandonkelly/repos","events_url":"https://api.github.com/users/brandonkelly/events{/privacy}","received_events_url":"https://api.github.com/users/brandonkelly/received_events","type":"User","site_admin":false},"created_at":"2018-10-01T10:44:47Z","updated_at":"2018-10-01T10:44:47Z","author_association":"MEMBER","body":"Sorry I was confused; I thought you were talking about the [ignore_user_abort](http://php.net/manual/en/misc.configuration.php#ini.ignore-user-abort) _setting_, which determines PHP’s default behavior when the user closes the connection. By default that is set to `false`, which means that the PHP script will automatically terminate when the connection is closed, but could also be set to `true`, so PHP is never terminated when the connection closed.\r\n\r\nBut to clarify, you are not talking about that setting, you are talking about the [ignore_user_abort()](http://php.net/manual/en/function.ignore-user-abort.php) _function_ being disabled by the `disable_functions` setting.\r\n\r\nCraft relies on the ability to call `ignore_user_abort(true)` when running background tasks using the built-in queue worker. So there is nothing we can do about this. You will need to do one of these things:\r\n\r\n- Get your host to remove `ignore_user_abort` from `disabled_functions`.\r\n- Disable Craft’s [runQueueAutomatically](https://docs.craftcms.com/v3/config/config-settings.html#runqueueautomatically) config setting, then either [use a different queue driver](https://docs.craftcms.com/v3/config/#application-config) or exclusively run the queue [from the console](https://github.com/yiisoft/yii2-queue/blob/master/docs/guide/driver-db.md#console).\r\n- Find a different host."}}
{"actor":{"display_login":"brandonkelly"}}