{"action":"created","issue":{"url":"https://api.github.com/repos/jezdez/hirefire/issues/8","labels_url":"https://api.github.com/repos/jezdez/hirefire/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/jezdez/hirefire/issues/8/comments","events_url":"https://api.github.com/repos/jezdez/hirefire/issues/8/events","html_url":"https://github.com/jezdez/hirefire/issues/8","id":67272239,"number":8,"title":"Celery doesn't account for running and reserved tasks","user":{"login":"ryanhiebert","id":425099,"avatar_url":"https://avatars.githubusercontent.com/u/425099?v=3","gravatar_id":"","url":"https://api.github.com/users/ryanhiebert","html_url":"https://github.com/ryanhiebert","followers_url":"https://api.github.com/users/ryanhiebert/followers","following_url":"https://api.github.com/users/ryanhiebert/following{/other_user}","gists_url":"https://api.github.com/users/ryanhiebert/gists{/gist_id}","starred_url":"https://api.github.com/users/ryanhiebert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryanhiebert/subscriptions","organizations_url":"https://api.github.com/users/ryanhiebert/orgs","repos_url":"https://api.github.com/users/ryanhiebert/repos","events_url":"https://api.github.com/users/ryanhiebert/events{/privacy}","received_events_url":"https://api.github.com/users/ryanhiebert/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2015-04-09T03:28:10Z","updated_at":"2015-12-13T12:36:46Z","closed_at":null,"body":"This is a similar problem to #3 .\r\n\r\nI'm using the Redis backend for Celery. I tried my hand at a solution in https://github.com/aspiredu/hirefire/commit/3ae625cc527330357a66df8d8c5e2701213d5af7, but it only works for small numbers of dynos, workers, and tasks. Even when it does work, it's painfully slow.\r\n\r\nThe issue is that `active`, `reserved`, and `scheduled` tasks don't show up in the queue. Missing the `scheduled` ones is fine, but missing `active` and `reserved` means that my queues, which are running a lot of long-running tasks, get shut down well before stuff is done processing, which causes the dynos to flap as they are put back in the queue, then taken out, then when the process repeats."},"comment":{"url":"https://api.github.com/repos/jezdez/hirefire/issues/comments/164254592","html_url":"https://github.com/jezdez/hirefire/issues/8#issuecomment-164254592","issue_url":"https://api.github.com/repos/jezdez/hirefire/issues/8","id":164254592,"user":{"login":"ryanhiebert","id":425099,"avatar_url":"https://avatars.githubusercontent.com/u/425099?v=3","gravatar_id":"","url":"https://api.github.com/users/ryanhiebert","html_url":"https://github.com/ryanhiebert","followers_url":"https://api.github.com/users/ryanhiebert/followers","following_url":"https://api.github.com/users/ryanhiebert/following{/other_user}","gists_url":"https://api.github.com/users/ryanhiebert/gists{/gist_id}","starred_url":"https://api.github.com/users/ryanhiebert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryanhiebert/subscriptions","organizations_url":"https://api.github.com/users/ryanhiebert/orgs","repos_url":"https://api.github.com/users/ryanhiebert/repos","events_url":"https://api.github.com/users/ryanhiebert/events{/privacy}","received_events_url":"https://api.github.com/users/ryanhiebert/received_events","type":"User","site_admin":false},"created_at":"2015-12-13T12:36:46Z","updated_at":"2015-12-13T12:36:46Z","body":"@syphar: that sounds awesome. I'm looking forward to it."}}