{"action":"created","issue":{"url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/issues/27816","repository_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped","labels_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/issues/27816/labels{/name}","comments_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/issues/27816/comments","events_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/issues/27816/events","html_url":"https://github.com/DefinitelyTyped/DefinitelyTyped/pull/27816","id":347065427,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA1Nzc2Njc5","number":27816,"title":"Bull: Add types to some private functions","user":{"login":"aleccool213","id":6475934,"node_id":"MDQ6VXNlcjY0NzU5MzQ=","avatar_url":"https://avatars2.githubusercontent.com/u/6475934?v=4","gravatar_id":"","url":"https://api.github.com/users/aleccool213","html_url":"https://github.com/aleccool213","followers_url":"https://api.github.com/users/aleccool213/followers","following_url":"https://api.github.com/users/aleccool213/following{/other_user}","gists_url":"https://api.github.com/users/aleccool213/gists{/gist_id}","starred_url":"https://api.github.com/users/aleccool213/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aleccool213/subscriptions","organizations_url":"https://api.github.com/users/aleccool213/orgs","repos_url":"https://api.github.com/users/aleccool213/repos","events_url":"https://api.github.com/users/aleccool213/events{/privacy}","received_events_url":"https://api.github.com/users/aleccool213/received_events","type":"User","site_admin":false},"labels":[{"id":397523192,"node_id":"MDU6TGFiZWwzOTc1MjMxOTI=","url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/labels/Awaiting%20reviewer%20feedback","name":"Awaiting reviewer feedback","color":"0052cc","default":false},{"id":644095882,"node_id":"MDU6TGFiZWw2NDQwOTU4ODI=","url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/labels/Merge:YSYL","name":"Merge:YSYL","color":"bfdadc","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-08-02T15:34:25Z","updated_at":"2018-08-07T21:08:50Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/pulls/27816","html_url":"https://github.com/DefinitelyTyped/DefinitelyTyped/pull/27816","diff_url":"https://github.com/DefinitelyTyped/DefinitelyTyped/pull/27816.diff","patch_url":"https://github.com/DefinitelyTyped/DefinitelyTyped/pull/27816.patch"},"body":"- Job.moveToCompleted\r\n- Job.moveToFailed\r\n- Queue.getNextJob\r\n- Also add null possibility to Queue.getJob\r\n\r\nMe and my team are using these functions to implement a multiple-repo job processor service (despite being told by the author that this pattern for Bull isn't [supported](https://github.com/OptimalBits/bull/issues/208#issuecomment-157497444) or [planned](https://github.com/OptimalBits/bull/issues/790#issuecomment-345387700)). We are manually moving jobs from state to state as the `process` function is not being used. Work for a job is being done in another repo and we are exposing these functions via an API. We know these functions are private currently but hopefully with this exposure and a future PR to the actual Bull repo, we can get these functions to be public. We have this working in production for hundreds of jobs per day and this pattern seems to be working just fine.\r\n\r\nPlease fill in this template.\r\n\r\n- [x] Use a meaningful title for the pull request. Include the name of the package modified.\r\n- [x] Test the change in your own code. (Compile and run.)\r\n- [x] Add or edit tests to reflect the change. (Run with `npm test`.)\r\n- [x] Follow the advice from the [readme](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/README.md#make-a-pull-request).\r\n- [x] Avoid [common mistakes](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/README.md#common-mistakes).\r\n- [x] Run `npm run lint package-name` (or `tsc` if no `tslint.json` is present).\r\n\r\nSelect one of these and delete the others:\r\n\r\nIf changing an existing definition:\r\n- [x] Provide a URL to documentation or source code which provides context for the suggested changes: \r\n- https://github.com/OptimalBits/bull/blob/742a86e0af0e7d829e7d9cea55b74e7f7e850938/lib/job.js#L182\r\n- https://github.com/OptimalBits/bull/blob/742a86e0af0e7d829e7d9cea55b74e7f7e850938/lib/job.js#L203\r\n- https://github.com/OptimalBits/bull/blob/742a86e0af0e7d829e7d9cea55b74e7f7e850938/lib/queue.js#L1055\r\n"},"comment":{"url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/issues/comments/411203236","html_url":"https://github.com/DefinitelyTyped/DefinitelyTyped/pull/27816#issuecomment-411203236","issue_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/issues/27816","id":411203236,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMTIwMzIzNg==","user":{"login":"aleccool213","id":6475934,"node_id":"MDQ6VXNlcjY0NzU5MzQ=","avatar_url":"https://avatars2.githubusercontent.com/u/6475934?v=4","gravatar_id":"","url":"https://api.github.com/users/aleccool213","html_url":"https://github.com/aleccool213","followers_url":"https://api.github.com/users/aleccool213/followers","following_url":"https://api.github.com/users/aleccool213/following{/other_user}","gists_url":"https://api.github.com/users/aleccool213/gists{/gist_id}","starred_url":"https://api.github.com/users/aleccool213/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aleccool213/subscriptions","organizations_url":"https://api.github.com/users/aleccool213/orgs","repos_url":"https://api.github.com/users/aleccool213/repos","events_url":"https://api.github.com/users/aleccool213/events{/privacy}","received_events_url":"https://api.github.com/users/aleccool213/received_events","type":"User","site_admin":false},"created_at":"2018-08-07T21:08:50Z","updated_at":"2018-08-07T21:08:50Z","author_association":"NONE","body":"@rbuckton sounds good!"}}
{"actor":{"display_login":"aleccool213"}}