{"action":"created","issue":{"url":"https://api.github.com/repos/OptimalBits/bull/issues/242","repository_url":"https://api.github.com/repos/OptimalBits/bull","labels_url":"https://api.github.com/repos/OptimalBits/bull/issues/242/labels{/name}","comments_url":"https://api.github.com/repos/OptimalBits/bull/issues/242/comments","events_url":"https://api.github.com/repos/OptimalBits/bull/issues/242/events","html_url":"https://github.com/OptimalBits/bull/issues/242","id":131970323,"number":242,"title":"How to limit concurrent workers count?","user":{"login":"iBat","id":1381249,"avatar_url":"https://avatars.githubusercontent.com/u/1381249?v=3","gravatar_id":"","url":"https://api.github.com/users/iBat","html_url":"https://github.com/iBat","followers_url":"https://api.github.com/users/iBat/followers","following_url":"https://api.github.com/users/iBat/following{/other_user}","gists_url":"https://api.github.com/users/iBat/gists{/gist_id}","starred_url":"https://api.github.com/users/iBat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iBat/subscriptions","organizations_url":"https://api.github.com/users/iBat/orgs","repos_url":"https://api.github.com/users/iBat/repos","events_url":"https://api.github.com/users/iBat/events{/privacy}","received_events_url":"https://api.github.com/users/iBat/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-07T13:53:10Z","updated_at":"2016-02-07T14:29:49Z","closed_at":null,"body":"I have long job queue (1000+). But I want to have only 1 (or any other number of my choice) concurrent worker for this queue (workers returns Promises). I figured that I needed the first argument Queue##process for this. But it seems that this has no effect. As before, start a large number of processes."},"comment":{"url":"https://api.github.com/repos/OptimalBits/bull/issues/comments/181022456","html_url":"https://github.com/OptimalBits/bull/issues/242#issuecomment-181022456","issue_url":"https://api.github.com/repos/OptimalBits/bull/issues/242","id":181022456,"user":{"login":"manast","id":95200,"avatar_url":"https://avatars.githubusercontent.com/u/95200?v=3","gravatar_id":"","url":"https://api.github.com/users/manast","html_url":"https://github.com/manast","followers_url":"https://api.github.com/users/manast/followers","following_url":"https://api.github.com/users/manast/following{/other_user}","gists_url":"https://api.github.com/users/manast/gists{/gist_id}","starred_url":"https://api.github.com/users/manast/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manast/subscriptions","organizations_url":"https://api.github.com/users/manast/orgs","repos_url":"https://api.github.com/users/manast/repos","events_url":"https://api.github.com/users/manast/events{/privacy}","received_events_url":"https://api.github.com/users/manast/received_events","type":"User","site_admin":false},"created_at":"2016-02-07T14:29:49Z","updated_at":"2016-02-07T14:29:49Z","body":"can you paste an example process function here that exhibits the behaviour you mentioned?"}}