{"action":"created","issue":{"url":"https://api.github.com/repos/benoitc/gunicorn/issues/1352","repository_url":"https://api.github.com/repos/benoitc/gunicorn","labels_url":"https://api.github.com/repos/benoitc/gunicorn/issues/1352/labels{/name}","comments_url":"https://api.github.com/repos/benoitc/gunicorn/issues/1352/comments","events_url":"https://api.github.com/repos/benoitc/gunicorn/issues/1352/events","html_url":"https://github.com/benoitc/gunicorn/issues/1352","id":178069475,"number":1352,"title":"Allow for a way to determine the current worker ID","user":{"login":"hynek","id":41240,"avatar_url":"https://avatars.githubusercontent.com/u/41240?v=3","gravatar_id":"","url":"https://api.github.com/users/hynek","html_url":"https://github.com/hynek","followers_url":"https://api.github.com/users/hynek/followers","following_url":"https://api.github.com/users/hynek/following{/other_user}","gists_url":"https://api.github.com/users/hynek/gists{/gist_id}","starred_url":"https://api.github.com/users/hynek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hynek/subscriptions","organizations_url":"https://api.github.com/users/hynek/orgs","repos_url":"https://api.github.com/users/hynek/repos","events_url":"https://api.github.com/users/hynek/events{/privacy}","received_events_url":"https://api.github.com/users/hynek/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-09-20T14:04:58Z","updated_at":"2016-10-01T01:37:58Z","closed_at":null,"body":"If I run an application in multi-process mode, it would be very useful for introspection to be able to determine which worker I actually am.  And by that I don’t mean the pid but an integer that goes from 1 to `--workers=WORKERS` (if a worker dies, the new one gets the worker id of it, not a new one).\r\n\r\nAn example for that is uwsgi’s `uwsgi.worker_id()` (that starts at 0 FWIW)."},"comment":{"url":"https://api.github.com/repos/benoitc/gunicorn/issues/comments/250884950","html_url":"https://github.com/benoitc/gunicorn/issues/1352#issuecomment-250884950","issue_url":"https://api.github.com/repos/benoitc/gunicorn/issues/1352","id":250884950,"user":{"login":"tilgovi","id":20818,"avatar_url":"https://avatars.githubusercontent.com/u/20818?v=3","gravatar_id":"","url":"https://api.github.com/users/tilgovi","html_url":"https://github.com/tilgovi","followers_url":"https://api.github.com/users/tilgovi/followers","following_url":"https://api.github.com/users/tilgovi/following{/other_user}","gists_url":"https://api.github.com/users/tilgovi/gists{/gist_id}","starred_url":"https://api.github.com/users/tilgovi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tilgovi/subscriptions","organizations_url":"https://api.github.com/users/tilgovi/orgs","repos_url":"https://api.github.com/users/tilgovi/repos","events_url":"https://api.github.com/users/tilgovi/events{/privacy}","received_events_url":"https://api.github.com/users/tilgovi/received_events","type":"User","site_admin":false},"created_at":"2016-10-01T01:37:58Z","updated_at":"2016-10-01T01:37:58Z","body":"We could make `TTOU` kill the highest numbered worker and have reload start numbering with 0. I think this would mostly satisfy both constraints. If it's okay to have some periods where workers with duplicate ids exist, this would be a solution."}}
{"actor":{"display_login":"tilgovi"}}