{"action":"created","issue":{"url":"https://api.github.com/repos/Automattic/kue/issues/937","repository_url":"https://api.github.com/repos/Automattic/kue","labels_url":"https://api.github.com/repos/Automattic/kue/issues/937/labels{/name}","comments_url":"https://api.github.com/repos/Automattic/kue/issues/937/comments","events_url":"https://api.github.com/repos/Automattic/kue/issues/937/events","html_url":"https://github.com/Automattic/kue/issues/937","id":172120509,"number":937,"title":"Working on one job at a time / jobs blocking each other","user":{"login":"queicherius","id":4615516,"avatar_url":"https://avatars.githubusercontent.com/u/4615516?v=3","gravatar_id":"","url":"https://api.github.com/users/queicherius","html_url":"https://github.com/queicherius","followers_url":"https://api.github.com/users/queicherius/followers","following_url":"https://api.github.com/users/queicherius/following{/other_user}","gists_url":"https://api.github.com/users/queicherius/gists{/gist_id}","starred_url":"https://api.github.com/users/queicherius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/queicherius/subscriptions","organizations_url":"https://api.github.com/users/queicherius/orgs","repos_url":"https://api.github.com/users/queicherius/repos","events_url":"https://api.github.com/users/queicherius/events{/privacy}","received_events_url":"https://api.github.com/users/queicherius/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-08-19T12:29:00Z","updated_at":"2016-08-24T08:04:00Z","closed_at":null,"body":"Let's say I have a job, which blocks the CPU for a while. If this job is triggered while a bunch of other jobs are already running, it completely blocks the execution of them as well, since it hogs the CPU so much.\r\n\r\n- Can you limit the CPU of each job, so all of them are guaranteed at least an equal amount of CPU?\r\n- Can you make the worker process only run a single job at a time (as opposed to a single job **per type**, which it is doing right now), while still using the priorities set to determine which job to choose? This way I could spawn mutltiple processes and limit their CPU at the OS level.\r\n\r\nOr am I doing something completely wrong in the first place? Anything helps. Thanks! 😃 "},"comment":{"url":"https://api.github.com/repos/Automattic/kue/issues/comments/241987774","html_url":"https://github.com/Automattic/kue/issues/937#issuecomment-241987774","issue_url":"https://api.github.com/repos/Automattic/kue/issues/937","id":241987774,"user":{"login":"victusfate","id":107623,"avatar_url":"https://avatars.githubusercontent.com/u/107623?v=3","gravatar_id":"","url":"https://api.github.com/users/victusfate","html_url":"https://github.com/victusfate","followers_url":"https://api.github.com/users/victusfate/followers","following_url":"https://api.github.com/users/victusfate/following{/other_user}","gists_url":"https://api.github.com/users/victusfate/gists{/gist_id}","starred_url":"https://api.github.com/users/victusfate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/victusfate/subscriptions","organizations_url":"https://api.github.com/users/victusfate/orgs","repos_url":"https://api.github.com/users/victusfate/repos","events_url":"https://api.github.com/users/victusfate/events{/privacy}","received_events_url":"https://api.github.com/users/victusfate/received_events","type":"User","site_admin":false},"created_at":"2016-08-24T08:04:00Z","updated_at":"2016-08-24T08:04:00Z","body":"The Jobs all have different types so don't block each other. But you can register different jobs together in the same worker. "}}
{"actor":{"display_login":"victusfate"}}