{"action":"created","issue":{"url":"https://api.github.com/repos/kr/beanstalkd/issues/374","repository_url":"https://api.github.com/repos/kr/beanstalkd","labels_url":"https://api.github.com/repos/kr/beanstalkd/issues/374/labels{/name}","comments_url":"https://api.github.com/repos/kr/beanstalkd/issues/374/comments","events_url":"https://api.github.com/repos/kr/beanstalkd/issues/374/events","html_url":"https://github.com/kr/beanstalkd/issues/374","id":304332992,"number":374,"title":"Priorities for workers","user":{"login":"john-dev","id":1394374,"avatar_url":"https://avatars0.githubusercontent.com/u/1394374?v=4","gravatar_id":"","url":"https://api.github.com/users/john-dev","html_url":"https://github.com/john-dev","followers_url":"https://api.github.com/users/john-dev/followers","following_url":"https://api.github.com/users/john-dev/following{/other_user}","gists_url":"https://api.github.com/users/john-dev/gists{/gist_id}","starred_url":"https://api.github.com/users/john-dev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/john-dev/subscriptions","organizations_url":"https://api.github.com/users/john-dev/orgs","repos_url":"https://api.github.com/users/john-dev/repos","events_url":"https://api.github.com/users/john-dev/events{/privacy}","received_events_url":"https://api.github.com/users/john-dev/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-03-12T11:24:21Z","updated_at":"2018-03-12T15:08:02Z","closed_at":null,"author_association":"NONE","body":"Hey there,\r\n\r\nis it possible to add priorities for workers aswell?\r\nMaybe by using a kind of reserve-delays for for each worker?\r\n\r\nWe use faster and slower hardware and want to process as much as possible on the fast hardware.\r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/kr/beanstalkd/issues/comments/372342881","html_url":"https://github.com/kr/beanstalkd/issues/374#issuecomment-372342881","issue_url":"https://api.github.com/repos/kr/beanstalkd/issues/374","id":372342881,"user":{"login":"JensRantil","id":730342,"avatar_url":"https://avatars0.githubusercontent.com/u/730342?v=4","gravatar_id":"","url":"https://api.github.com/users/JensRantil","html_url":"https://github.com/JensRantil","followers_url":"https://api.github.com/users/JensRantil/followers","following_url":"https://api.github.com/users/JensRantil/following{/other_user}","gists_url":"https://api.github.com/users/JensRantil/gists{/gist_id}","starred_url":"https://api.github.com/users/JensRantil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JensRantil/subscriptions","organizations_url":"https://api.github.com/users/JensRantil/orgs","repos_url":"https://api.github.com/users/JensRantil/repos","events_url":"https://api.github.com/users/JensRantil/events{/privacy}","received_events_url":"https://api.github.com/users/JensRantil/received_events","type":"User","site_admin":false},"created_at":"2018-03-12T15:08:02Z","updated_at":"2018-03-12T15:08:02Z","author_association":"CONTRIBUTOR","body":"> job.reserve(timeout = 5, delay = 5)\r\n\r\n@john-dev It feels unintuitive to _add_ a delay for something that is latency critical,  no? Sure, you might wait 5 seconds to find the fastest encoder and it processes the video for 5 min or whatever, but then what is the probability of multiple processors being ready within those five seconds?\r\n\r\nAlso, isn't video encoded in same-size chunks anyway? If so, it's a highly parallelizable problem anyway and your latency is basically a function of the slowest processor?"}}
{"actor":{"display_login":"JensRantil"}}