{"action":"created","issue":{"url":"https://api.github.com/repos/magento/magento2/issues/23625","repository_url":"https://api.github.com/repos/magento/magento2","labels_url":"https://api.github.com/repos/magento/magento2/issues/23625/labels{/name}","comments_url":"https://api.github.com/repos/magento/magento2/issues/23625/comments","events_url":"https://api.github.com/repos/magento/magento2/issues/23625/events","html_url":"https://github.com/magento/magento2/issues/23625","id":465449358,"node_id":"MDU6SXNzdWU0NjU0NDkzNTg=","number":23625,"title":"MessageQueue cron runner repeatedly launches duplicate consumers when ps command is provided by Busybox","user":{"login":"gwharton","id":30697781,"node_id":"MDQ6VXNlcjMwNjk3Nzgx","avatar_url":"https://avatars2.githubusercontent.com/u/30697781?v=4","gravatar_id":"","url":"https://api.github.com/users/gwharton","html_url":"https://github.com/gwharton","followers_url":"https://api.github.com/users/gwharton/followers","following_url":"https://api.github.com/users/gwharton/following{/other_user}","gists_url":"https://api.github.com/users/gwharton/gists{/gist_id}","starred_url":"https://api.github.com/users/gwharton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gwharton/subscriptions","organizations_url":"https://api.github.com/users/gwharton/orgs","repos_url":"https://api.github.com/users/gwharton/repos","events_url":"https://api.github.com/users/gwharton/events{/privacy}","received_events_url":"https://api.github.com/users/gwharton/received_events","type":"User","site_admin":false},"labels":[{"id":688811200,"node_id":"MDU6TGFiZWw2ODg4MTEyMDA=","url":"https://api.github.com/repos/magento/magento2/labels/Issue:%20Format%20is%20valid","name":"Issue: Format is valid","color":"0e8a16","default":false},{"id":161563561,"node_id":"MDU6TGFiZWwxNjE1NjM1NjE=","url":"https://api.github.com/repos/magento/magento2/labels/Progress:%20needs%20update","name":"Progress: needs update","color":"b60205","default":false}],"state":"closed","locked":false,"assignee":{"login":"engcom-Delta","id":51681379,"node_id":"MDQ6VXNlcjUxNjgxMzc5","avatar_url":"https://avatars1.githubusercontent.com/u/51681379?v=4","gravatar_id":"","url":"https://api.github.com/users/engcom-Delta","html_url":"https://github.com/engcom-Delta","followers_url":"https://api.github.com/users/engcom-Delta/followers","following_url":"https://api.github.com/users/engcom-Delta/following{/other_user}","gists_url":"https://api.github.com/users/engcom-Delta/gists{/gist_id}","starred_url":"https://api.github.com/users/engcom-Delta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/engcom-Delta/subscriptions","organizations_url":"https://api.github.com/users/engcom-Delta/orgs","repos_url":"https://api.github.com/users/engcom-Delta/repos","events_url":"https://api.github.com/users/engcom-Delta/events{/privacy}","received_events_url":"https://api.github.com/users/engcom-Delta/received_events","type":"User","site_admin":false},"assignees":[{"login":"engcom-Delta","id":51681379,"node_id":"MDQ6VXNlcjUxNjgxMzc5","avatar_url":"https://avatars1.githubusercontent.com/u/51681379?v=4","gravatar_id":"","url":"https://api.github.com/users/engcom-Delta","html_url":"https://github.com/engcom-Delta","followers_url":"https://api.github.com/users/engcom-Delta/followers","following_url":"https://api.github.com/users/engcom-Delta/following{/other_user}","gists_url":"https://api.github.com/users/engcom-Delta/gists{/gist_id}","starred_url":"https://api.github.com/users/engcom-Delta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/engcom-Delta/subscriptions","organizations_url":"https://api.github.com/users/engcom-Delta/orgs","repos_url":"https://api.github.com/users/engcom-Delta/repos","events_url":"https://api.github.com/users/engcom-Delta/events{/privacy}","received_events_url":"https://api.github.com/users/engcom-Delta/received_events","type":"User","site_admin":false}],"milestone":null,"comments":16,"created_at":"2019-07-08T20:38:55Z","updated_at":"2019-10-29T11:33:03Z","closed_at":"2019-10-17T19:41:30Z","author_association":"CONTRIBUTOR","body":"### Preconditions (*)\r\n1. Magento 2.3.2\r\n2. Alpine Linux (or any distro using busybox to provide ps command)\r\n3. ps command provided by busybox (no procps installed)\r\n4. no php-posix module installed.\r\n5. Cron jobs setup\r\n\r\n### Steps to reproduce (*)\r\n1. ps -a\r\n2. Wait 5 minutes\r\n3. ps -a\r\n\r\n### Expected result (*)\r\n1. Only one set of consumers should be running.\r\n\r\n### Actual result (*)\r\n1. Every minute a new set of consumers is launched.\r\n\r\n\\Magento\\MessageQueue\\Model\\Cron\\ConsumersRunner\r\n\r\nuses one of two ways to determine whether the consumers are already running or not.\r\n\r\n```\r\nphp posix_getpgid($pid)\r\n```\r\n\r\nor \r\n\r\n```\r\nexec ps -p $pid\r\n```\r\n\r\nThe check to make sure no consumers are running fails, and new consumers are launched, even though there are already consumers running.\r\n\r\nThe machine will expire shortly later when all memory is exhausted."},"comment":{"url":"https://api.github.com/repos/magento/magento2/issues/comments/547377704","html_url":"https://github.com/magento/magento2/issues/23625#issuecomment-547377704","issue_url":"https://api.github.com/repos/magento/magento2/issues/23625","id":547377704,"node_id":"MDEyOklzc3VlQ29tbWVudDU0NzM3NzcwNA==","user":{"login":"maderlock","id":630320,"node_id":"MDQ6VXNlcjYzMDMyMA==","avatar_url":"https://avatars3.githubusercontent.com/u/630320?v=4","gravatar_id":"","url":"https://api.github.com/users/maderlock","html_url":"https://github.com/maderlock","followers_url":"https://api.github.com/users/maderlock/followers","following_url":"https://api.github.com/users/maderlock/following{/other_user}","gists_url":"https://api.github.com/users/maderlock/gists{/gist_id}","starred_url":"https://api.github.com/users/maderlock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maderlock/subscriptions","organizations_url":"https://api.github.com/users/maderlock/orgs","repos_url":"https://api.github.com/users/maderlock/repos","events_url":"https://api.github.com/users/maderlock/events{/privacy}","received_events_url":"https://api.github.com/users/maderlock/received_events","type":"User","site_admin":false},"created_at":"2019-10-29T11:33:03Z","updated_at":"2019-10-29T11:33:03Z","author_association":"NONE","body":"Interesting. I cannot upgrade to 2.3.3 at this point of the project, but I had come to the conclusion that the PID logic was incorrect - it was referring to the parent PID not that of the spun up consumers. Interesting to see that a different mechanism is being used now."}}
{"actor":{"display_login":"maderlock"}}