{"action":"created","comment":{"url":"https://api.github.com/repos/digitalbazaar/bedrock-messages/pulls/comments/53991616","id":53991616,"diff_hunk":"@@ -13,6 +13,14 @@ config.messages.endpoints.messages = '/messages';\n config.messages.endpoints.messagesSearch = '/messages-search';\n config.messages.endpoints.messagesBatch = '/messages-batch';\n \n+config.messages.batchMessageScheduler = {};\n+// Set how often the scheduler background-job will run\n+config.messages.batchMessageScheduler.frequency = 'R/PT1M';\n+// Set priority of this background job\n+config.messages.batchMessageScheduler.priority = 0;\n+// Set max amount of bedrock workers on the scheduling job\n+config.messages.batchMessageScheduler.concurrency = -1;","path":"lib/config.js","position":10,"original_position":10,"commit_id":"97d762333ac74fca6db84852d8108978e2bfdf33","original_commit_id":"97d762333ac74fca6db84852d8108978e2bfdf33","user":{"login":"dlongley","id":168137,"avatar_url":"https://avatars.githubusercontent.com/u/168137?v=3","gravatar_id":"","url":"https://api.github.com/users/dlongley","html_url":"https://github.com/dlongley","followers_url":"https://api.github.com/users/dlongley/followers","following_url":"https://api.github.com/users/dlongley/following{/other_user}","gists_url":"https://api.github.com/users/dlongley/gists{/gist_id}","starred_url":"https://api.github.com/users/dlongley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dlongley/subscriptions","organizations_url":"https://api.github.com/users/dlongley/orgs","repos_url":"https://api.github.com/users/dlongley/repos","events_url":"https://api.github.com/users/dlongley/events{/privacy}","received_events_url":"https://api.github.com/users/dlongley/received_events","type":"User","site_admin":false},"body":"I don't think this is a config for a scheduler, it's the (partial) config for a particular job. Also, we might have more than one job in the future, so let's use this:\r\n\r\n```js\r\nconfig.messages.jobs = {};\r\nconfig.messages.jobs.batchMessages = {};","created_at":"2016-02-24T19:21:58Z","updated_at":"2016-02-24T19:21:58Z","html_url":"https://github.com/digitalbazaar/bedrock-messages/pull/4#discussion_r53991616","pull_request_url":"https://api.github.com/repos/digitalbazaar/bedrock-messages/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/digitalbazaar/bedrock-messages/pulls/comments/53991616"},"html":{"href":"https://github.com/digitalbazaar/bedrock-messages/pull/4#discussion_r53991616"},"pull_request":{"href":"https://api.github.com/repos/digitalbazaar/bedrock-messages/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/digitalbazaar/bedrock-messages/pulls/4","id":59995218,"html_url":"https://github.com/digitalbazaar/bedrock-messages/pull/4","diff_url":"https://github.com/digitalbazaar/bedrock-messages/pull/4.diff","patch_url":"https://github.com/digitalbazaar/bedrock-messages/pull/4.patch","issue_url":"https://api.github.com/repos/digitalbazaar/bedrock-messages/issues/4","number":4,"state":"open","locked":false,"title":"New algorithm http testing","user":{"login":"aishairzay","id":1332984,"avatar_url":"https://avatars.githubusercontent.com/u/1332984?v=3","gravatar_id":"","url":"https://api.github.com/users/aishairzay","html_url":"https://github.com/aishairzay","followers_url":"https://api.github.com/users/aishairzay/followers","following_url":"https://api.github.com/users/aishairzay/following{/other_user}","gists_url":"https://api.github.com/users/aishairzay/gists{/gist_id}","starred_url":"https://api.github.com/users/aishairzay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aishairzay/subscriptions","organizations_url":"https://api.github.com/users/aishairzay/orgs","repos_url":"https://api.github.com/users/aishairzay/repos","events_url":"https://api.github.com/users/aishairzay/events{/privacy}","received_events_url":"https://api.github.com/users/aishairzay/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-02-19T19:27:21Z","updated_at":"2016-02-24T19:21:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3872fdb25a647b7a87edd798c7906a1c8c933ff3","assignee":{"login":"dlongley","id":168137,"avatar_url":"https://avatars.githubusercontent.com/u/168137?v=3","gravatar_id":"","url":"https://api.github.com/users/dlongley","html_url":"https://github.com/dlongley","followers_url":"https://api.github.com/users/dlongley/followers","following_url":"https://api.github.com/users/dlongley/following{/other_user}","gists_url":"https://api.github.com/users/dlongley/gists{/gist_id}","starred_url":"https://api.github.com/users/dlongley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dlongley/subscriptions","organizations_url":"https://api.github.com/users/dlongley/orgs","repos_url":"https://api.github.com/users/dlongley/repos","events_url":"https://api.github.com/users/dlongley/events{/privacy}","received_events_url":"https://api.github.com/users/dlongley/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/digitalbazaar/bedrock-messages/pulls/4/commits","review_comments_url":"https://api.github.com/repos/digitalbazaar/bedrock-messages/pulls/4/comments","review_comment_url":"https://api.github.com/repos/digitalbazaar/bedrock-messages/pulls/comments{/number}","comments_url":"https://api.github.com/repos/digitalbazaar/bedrock-messages/issues/4/comments","statuses_url":"https://api.github.com/repos/digitalbazaar/bedrock-messages/statuses/97d762333ac74fca6db84852d8108978e2bfdf33","head":{"label":"digitalbazaar:newAlgorithmHttpTesting","ref":"newAlgorithmHttpTesting","sha":"97d762333ac74fca6db84852d8108978e2bfdf33","user":{"login":"digitalbazaar","id":167436,"avatar_url":"https://avatars.githubusercontent.com/u/167436?v=3","gravatar_id":"","url":"https://api.github.com/users/digitalbazaar","html_url":"https://github.com/digitalbazaar","followers_url":"https://api.github.com/users/digitalbazaar/followers","following_url":"https://api.github.com/users/digitalbazaar/following{/other_user}","gists_url":"https://api.github.com/users/digitalbazaar/gists{/gist_id}","starred_url":"https://api.github.com/users/digitalbazaar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/digitalbazaar/subscriptions","organizations_url":"https://api.github.com/users/digitalbazaar/orgs","repos_url":"https://api.github.com/users/digitalbazaar/repos","events_url":"https://api.github.com/users/digitalbazaar/events{/privacy}","received_events_url":"https://api.github.com/users/digitalbazaar/received_events","type":"Organization","site_admin":false},"repo":{"id":40145689,"name":"bedrock-messages","full_name":"digitalbazaar/bedrock-messages","owner":{"login":"digitalbazaar","id":167436,"avatar_url":"https://avatars.githubusercontent.com/u/167436?v=3","gravatar_id":"","url":"https://api.github.com/users/digitalbazaar","html_url":"https://github.com/digitalbazaar","followers_url":"https://api.github.com/users/digitalbazaar/followers","following_url":"https://api.github.com/users/digitalbazaar/following{/other_user}","gists_url":"https://api.github.com/users/digitalbazaar/gists{/gist_id}","starred_url":"https://api.github.com/users/digitalbazaar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/digitalbazaar/subscriptions","organizations_url":"https://api.github.com/users/digitalbazaar/orgs","repos_url":"https://api.github.com/users/digitalbazaar/repos","events_url":"https://api.github.com/users/digitalbazaar/events{/privacy}","received_events_url":"https://api.github.com/users/digitalbazaar/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/digitalbazaar/bedrock-messages","description":"A module for simple, secure, generic messages such as notifications","fork":false,"url":"https://api.github.com/repos/digitalbazaar/bedrock-messages","forks_url":"https://api.github.com/repos/digitalbazaar/bedrock-messages/forks","keys_url":"https://api.github.com/repos/digitalbazaar/bedrock-messages/keys{/key_id}","collaborators_url":"https://api.github.com/repos/digitalbazaar/bedrock-messages/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/digitalbazaar/bedrock-messages/teams","hooks_url":"https://api.github.com/repos/digitalbazaar/bedrock-messages/hooks","issue_events_url":"https://api.github.com/repos/digitalbazaar/bedrock-messages/issues/events{/number}","events_url":"https://api.github.com/repos/digitalbazaar/bedrock-messages/events","assignees_url":"https://api.github.com/repos/digitalbazaar/bedrock-messages/assignees{/user}","branches_url":"https://api.github.com/repos/digitalbazaar/bedrock-messages/branches{/branch}","tags_url":"https://api.github.com/repos/digitalbazaar/bedrock-messages/tags","blobs_url":"https://api.github.com/repos/digitalbazaar/bedrock-messages/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/digitalbazaar/bedrock-messages/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/digitalbazaar/bedrock-messages/git/refs{/sha}","trees_url":"https://api.github.com/repos/digitalbazaar/bedrock-messages/git/trees{/sha}","statuses_url":"https://api.github.com/repos/digitalbazaar/bedrock-messages/statuses/{sha}","languages_url":"https://api.github.com/repos/digitalbazaar/bedrock-messages/languages","stargazers_url":"https://api.github.com/repos/digitalbazaar/bedrock-messages/stargazers","contributors_url":"https://api.github.com/repos/digitalbazaar/bedrock-messages/contributors","subscribers_url":"https://api.github.com/repos/digitalbazaar/bedrock-messages/subscribers","subscription_url":"https://api.github.com/repos/digitalbazaar/bedrock-messages/subscription","commits_url":"https://api.github.com/repos/digitalbazaar/bedrock-messages/commits{/sha}","git_commits_url":"https://api.github.com/repos/digitalbazaar/bedrock-messages/git/commits{/sha}","comments_url":"https://api.github.com/repos/digitalbazaar/bedrock-messages/comments{/number}","issue_comment_url":"https://api.github.com/repos/digitalbazaar/bedrock-messages/issues/comments{/number}","contents_url":"https://api.github.com/repos/digitalbazaar/bedrock-messages/contents/{+path}","compare_url":"https://api.github.com/repos/digitalbazaar/bedrock-messages/compare/{base}...{head}","merges_url":"https://api.github.com/repos/digitalbazaar/bedrock-messages/merges","archive_url":"https://api.github.com/repos/digitalbazaar/bedrock-messages/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/digitalbazaar/bedrock-messages/downloads","issues_url":"https://api.github.com/repos/digitalbazaar/bedrock-messages/issues{/number}","pulls_url":"https://api.github.com/repos/digitalbazaar/bedrock-messages/pulls{/number}","milestones_url":"https://api.github.com/repos/digitalbazaar/bedrock-messages/milestones{/number}","notifications_url":"https://api.github.com/repos/digitalbazaar/bedrock-messages/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/digitalbazaar/bedrock-messages/labels{/name}","releases_url":"https://api.github.com/repos/digitalbazaar/bedrock-messages/releases{/id}","deployments_url":"https://api.github.com/repos/digitalbazaar/bedrock-messages/deployments","created_at":"2015-08-03T20:11:11Z","updated_at":"2016-01-21T16:53:04Z","pushed_at":"2016-02-23T21:04:55Z","git_url":"git://github.com/digitalbazaar/bedrock-messages.git","ssh_url":"git@github.com:digitalbazaar/bedrock-messages.git","clone_url":"https://github.com/digitalbazaar/bedrock-messages.git","svn_url":"https://github.com/digitalbazaar/bedrock-messages","homepage":null,"size":94,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"digitalbazaar:newAlgorithm","ref":"newAlgorithm","sha":"eaedc5b65e78bf62ecb50a7ce93276a28f90ddf4","user":{"login":"digitalbazaar","id":167436,"avatar_url":"https://avatars.githubusercontent.com/u/167436?v=3","gravatar_id":"","url":"https://api.github.com/users/digitalbazaar","html_url":"https://github.com/digitalbazaar","followers_url":"https://api.github.com/users/digitalbazaar/followers","following_url":"https://api.github.com/users/digitalbazaar/following{/other_user}","gists_url":"https://api.github.com/users/digitalbazaar/gists{/gist_id}","starred_url":"https://api.github.com/users/digitalbazaar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/digitalbazaar/subscriptions","organizations_url":"https://api.github.com/users/digitalbazaar/orgs","repos_url":"https://api.github.com/users/digitalbazaar/repos","events_url":"https://api.github.com/users/digitalbazaar/events{/privacy}","received_events_url":"https://api.github.com/users/digitalbazaar/received_events","type":"Organization","site_admin":false},"repo":{"id":40145689,"name":"bedrock-messages","full_name":"digitalbazaar/bedrock-messages","owner":{"login":"digitalbazaar","id":167436,"avatar_url":"https://avatars.githubusercontent.com/u/167436?v=3","gravatar_id":"","url":"https://api.github.com/users/digitalbazaar","html_url":"https://github.com/digitalbazaar","followers_url":"https://api.github.com/users/digitalbazaar/followers","following_url":"https://api.github.com/users/digitalbazaar/following{/other_user}","gists_url":"https://api.github.com/users/digitalbazaar/gists{/gist_id}","starred_url":"https://api.github.com/users/digitalbazaar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/digitalbazaar/subscriptions","organizations_url":"https://api.github.com/users/digitalbazaar/orgs","repos_url":"https://api.github.com/users/digitalbazaar/repos","events_url":"https://api.github.com/users/digitalbazaar/events{/privacy}","received_events_url":"https://api.github.com/users/digitalbazaar/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/digitalbazaar/bedrock-messages","description":"A module for simple, secure, generic messages such as notifications","fork":false,"url":"https://api.github.com/repos/digitalbazaar/bedrock-messages","forks_url":"https://api.github.com/repos/digitalbazaar/bedrock-messages/forks","keys_url":"https://api.github.com/repos/digitalbazaar/bedrock-messages/keys{/key_id}","collaborators_url":"https://api.github.com/repos/digitalbazaar/bedrock-messages/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/digitalbazaar/bedrock-messages/teams","hooks_url":"https://api.github.com/repos/digitalbazaar/bedrock-messages/hooks","issue_events_url":"https://api.github.com/repos/digitalbazaar/bedrock-messages/issues/events{/number}","events_url":"https://api.github.com/repos/digitalbazaar/bedrock-messages/events","assignees_url":"https://api.github.com/repos/digitalbazaar/bedrock-messages/assignees{/user}","branches_url":"https://api.github.com/repos/digitalbazaar/bedrock-messages/branches{/branch}","tags_url":"https://api.github.com/repos/digitalbazaar/bedrock-messages/tags","blobs_url":"https://api.github.com/repos/digitalbazaar/bedrock-messages/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/digitalbazaar/bedrock-messages/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/digitalbazaar/bedrock-messages/git/refs{/sha}","trees_url":"https://api.github.com/repos/digitalbazaar/bedrock-messages/git/trees{/sha}","statuses_url":"https://api.github.com/repos/digitalbazaar/bedrock-messages/statuses/{sha}","languages_url":"https://api.github.com/repos/digitalbazaar/bedrock-messages/languages","stargazers_url":"https://api.github.com/repos/digitalbazaar/bedrock-messages/stargazers","contributors_url":"https://api.github.com/repos/digitalbazaar/bedrock-messages/contributors","subscribers_url":"https://api.github.com/repos/digitalbazaar/bedrock-messages/subscribers","subscription_url":"https://api.github.com/repos/digitalbazaar/bedrock-messages/subscription","commits_url":"https://api.github.com/repos/digitalbazaar/bedrock-messages/commits{/sha}","git_commits_url":"https://api.github.com/repos/digitalbazaar/bedrock-messages/git/commits{/sha}","comments_url":"https://api.github.com/repos/digitalbazaar/bedrock-messages/comments{/number}","issue_comment_url":"https://api.github.com/repos/digitalbazaar/bedrock-messages/issues/comments{/number}","contents_url":"https://api.github.com/repos/digitalbazaar/bedrock-messages/contents/{+path}","compare_url":"https://api.github.com/repos/digitalbazaar/bedrock-messages/compare/{base}...{head}","merges_url":"https://api.github.com/repos/digitalbazaar/bedrock-messages/merges","archive_url":"https://api.github.com/repos/digitalbazaar/bedrock-messages/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/digitalbazaar/bedrock-messages/downloads","issues_url":"https://api.github.com/repos/digitalbazaar/bedrock-messages/issues{/number}","pulls_url":"https://api.github.com/repos/digitalbazaar/bedrock-messages/pulls{/number}","milestones_url":"https://api.github.com/repos/digitalbazaar/bedrock-messages/milestones{/number}","notifications_url":"https://api.github.com/repos/digitalbazaar/bedrock-messages/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/digitalbazaar/bedrock-messages/labels{/name}","releases_url":"https://api.github.com/repos/digitalbazaar/bedrock-messages/releases{/id}","deployments_url":"https://api.github.com/repos/digitalbazaar/bedrock-messages/deployments","created_at":"2015-08-03T20:11:11Z","updated_at":"2016-01-21T16:53:04Z","pushed_at":"2016-02-23T21:04:55Z","git_url":"git://github.com/digitalbazaar/bedrock-messages.git","ssh_url":"git@github.com:digitalbazaar/bedrock-messages.git","clone_url":"https://github.com/digitalbazaar/bedrock-messages.git","svn_url":"https://github.com/digitalbazaar/bedrock-messages","homepage":null,"size":94,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/digitalbazaar/bedrock-messages/pulls/4"},"html":{"href":"https://github.com/digitalbazaar/bedrock-messages/pull/4"},"issue":{"href":"https://api.github.com/repos/digitalbazaar/bedrock-messages/issues/4"},"comments":{"href":"https://api.github.com/repos/digitalbazaar/bedrock-messages/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/digitalbazaar/bedrock-messages/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/digitalbazaar/bedrock-messages/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/digitalbazaar/bedrock-messages/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/digitalbazaar/bedrock-messages/statuses/97d762333ac74fca6db84852d8108978e2bfdf33"}}}}