{"action":"opened","number":61,"pull_request":{"url":"https://api.github.com/repos/dbader/schedule/pulls/61","id":46937973,"html_url":"https://github.com/dbader/schedule/pull/61","diff_url":"https://github.com/dbader/schedule/pull/61.diff","patch_url":"https://github.com/dbader/schedule/pull/61.patch","issue_url":"https://api.github.com/repos/dbader/schedule/issues/61","number":61,"state":"open","locked":false,"title":"Restrict resolution to seconds when running pending tasks","user":{"login":"ashisha","id":71777,"avatar_url":"https://avatars.githubusercontent.com/u/71777?v=3","gravatar_id":"","url":"https://api.github.com/users/ashisha","html_url":"https://github.com/ashisha","followers_url":"https://api.github.com/users/ashisha/followers","following_url":"https://api.github.com/users/ashisha/following{/other_user}","gists_url":"https://api.github.com/users/ashisha/gists{/gist_id}","starred_url":"https://api.github.com/users/ashisha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashisha/subscriptions","organizations_url":"https://api.github.com/users/ashisha/orgs","repos_url":"https://api.github.com/users/ashisha/repos","events_url":"https://api.github.com/users/ashisha/events{/privacy}","received_events_url":"https://api.github.com/users/ashisha/received_events","type":"User","site_admin":false},"body":"schedule's current resolution is seconds. This changeset runs the pending tasks within a resolution of second to be most effective.\r\n\r\nConsider the below scenario:\r\n* Job is setup to run every second\r\n* Current datetime is 10:00:00\r\n* Now if the next run_pending is called at 10:00:59.999999, we miss running the job\r\n* Even if the callee is calling run_pending every 1 seconds, it's possible that his job will run at 10:00:01.999999.\r\n* This is not just about first run, but there could be many such scenarios depending upon when run_pending is called.\r\n","created_at":"2015-10-06T18:14:51Z","updated_at":"2015-10-06T18:14:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/dbader/schedule/pulls/61/commits","review_comments_url":"https://api.github.com/repos/dbader/schedule/pulls/61/comments","review_comment_url":"https://api.github.com/repos/dbader/schedule/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dbader/schedule/issues/61/comments","statuses_url":"https://api.github.com/repos/dbader/schedule/statuses/e29a7bdfc88a7b15254836fe9db6986af7c6d470","head":{"label":"ashisha:master","ref":"master","sha":"e29a7bdfc88a7b15254836fe9db6986af7c6d470","user":{"login":"ashisha","id":71777,"avatar_url":"https://avatars.githubusercontent.com/u/71777?v=3","gravatar_id":"","url":"https://api.github.com/users/ashisha","html_url":"https://github.com/ashisha","followers_url":"https://api.github.com/users/ashisha/followers","following_url":"https://api.github.com/users/ashisha/following{/other_user}","gists_url":"https://api.github.com/users/ashisha/gists{/gist_id}","starred_url":"https://api.github.com/users/ashisha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashisha/subscriptions","organizations_url":"https://api.github.com/users/ashisha/orgs","repos_url":"https://api.github.com/users/ashisha/repos","events_url":"https://api.github.com/users/ashisha/events{/privacy}","received_events_url":"https://api.github.com/users/ashisha/received_events","type":"User","site_admin":false},"repo":{"id":43768927,"name":"schedule","full_name":"ashisha/schedule","owner":{"login":"ashisha","id":71777,"avatar_url":"https://avatars.githubusercontent.com/u/71777?v=3","gravatar_id":"","url":"https://api.github.com/users/ashisha","html_url":"https://github.com/ashisha","followers_url":"https://api.github.com/users/ashisha/followers","following_url":"https://api.github.com/users/ashisha/following{/other_user}","gists_url":"https://api.github.com/users/ashisha/gists{/gist_id}","starred_url":"https://api.github.com/users/ashisha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashisha/subscriptions","organizations_url":"https://api.github.com/users/ashisha/orgs","repos_url":"https://api.github.com/users/ashisha/repos","events_url":"https://api.github.com/users/ashisha/events{/privacy}","received_events_url":"https://api.github.com/users/ashisha/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ashisha/schedule","description":"Python job scheduling for humans.","fork":true,"url":"https://api.github.com/repos/ashisha/schedule","forks_url":"https://api.github.com/repos/ashisha/schedule/forks","keys_url":"https://api.github.com/repos/ashisha/schedule/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ashisha/schedule/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ashisha/schedule/teams","hooks_url":"https://api.github.com/repos/ashisha/schedule/hooks","issue_events_url":"https://api.github.com/repos/ashisha/schedule/issues/events{/number}","events_url":"https://api.github.com/repos/ashisha/schedule/events","assignees_url":"https://api.github.com/repos/ashisha/schedule/assignees{/user}","branches_url":"https://api.github.com/repos/ashisha/schedule/branches{/branch}","tags_url":"https://api.github.com/repos/ashisha/schedule/tags","blobs_url":"https://api.github.com/repos/ashisha/schedule/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ashisha/schedule/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ashisha/schedule/git/refs{/sha}","trees_url":"https://api.github.com/repos/ashisha/schedule/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ashisha/schedule/statuses/{sha}","languages_url":"https://api.github.com/repos/ashisha/schedule/languages","stargazers_url":"https://api.github.com/repos/ashisha/schedule/stargazers","contributors_url":"https://api.github.com/repos/ashisha/schedule/contributors","subscribers_url":"https://api.github.com/repos/ashisha/schedule/subscribers","subscription_url":"https://api.github.com/repos/ashisha/schedule/subscription","commits_url":"https://api.github.com/repos/ashisha/schedule/commits{/sha}","git_commits_url":"https://api.github.com/repos/ashisha/schedule/git/commits{/sha}","comments_url":"https://api.github.com/repos/ashisha/schedule/comments{/number}","issue_comment_url":"https://api.github.com/repos/ashisha/schedule/issues/comments{/number}","contents_url":"https://api.github.com/repos/ashisha/schedule/contents/{+path}","compare_url":"https://api.github.com/repos/ashisha/schedule/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ashisha/schedule/merges","archive_url":"https://api.github.com/repos/ashisha/schedule/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ashisha/schedule/downloads","issues_url":"https://api.github.com/repos/ashisha/schedule/issues{/number}","pulls_url":"https://api.github.com/repos/ashisha/schedule/pulls{/number}","milestones_url":"https://api.github.com/repos/ashisha/schedule/milestones{/number}","notifications_url":"https://api.github.com/repos/ashisha/schedule/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ashisha/schedule/labels{/name}","releases_url":"https://api.github.com/repos/ashisha/schedule/releases{/id}","created_at":"2015-10-06T18:07:27Z","updated_at":"2015-10-06T18:07:27Z","pushed_at":"2015-10-06T18:09:43Z","git_url":"git://github.com/ashisha/schedule.git","ssh_url":"git@github.com:ashisha/schedule.git","clone_url":"https://github.com/ashisha/schedule.git","svn_url":"https://github.com/ashisha/schedule","homepage":"","size":586,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"dbader:master","ref":"master","sha":"550cc733f01c604663f00f1c9b6bd42ac207e01a","user":{"login":"dbader","id":306708,"avatar_url":"https://avatars.githubusercontent.com/u/306708?v=3","gravatar_id":"","url":"https://api.github.com/users/dbader","html_url":"https://github.com/dbader","followers_url":"https://api.github.com/users/dbader/followers","following_url":"https://api.github.com/users/dbader/following{/other_user}","gists_url":"https://api.github.com/users/dbader/gists{/gist_id}","starred_url":"https://api.github.com/users/dbader/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dbader/subscriptions","organizations_url":"https://api.github.com/users/dbader/orgs","repos_url":"https://api.github.com/users/dbader/repos","events_url":"https://api.github.com/users/dbader/events{/privacy}","received_events_url":"https://api.github.com/users/dbader/received_events","type":"User","site_admin":false},"repo":{"id":10155460,"name":"schedule","full_name":"dbader/schedule","owner":{"login":"dbader","id":306708,"avatar_url":"https://avatars.githubusercontent.com/u/306708?v=3","gravatar_id":"","url":"https://api.github.com/users/dbader","html_url":"https://github.com/dbader","followers_url":"https://api.github.com/users/dbader/followers","following_url":"https://api.github.com/users/dbader/following{/other_user}","gists_url":"https://api.github.com/users/dbader/gists{/gist_id}","starred_url":"https://api.github.com/users/dbader/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dbader/subscriptions","organizations_url":"https://api.github.com/users/dbader/orgs","repos_url":"https://api.github.com/users/dbader/repos","events_url":"https://api.github.com/users/dbader/events{/privacy}","received_events_url":"https://api.github.com/users/dbader/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dbader/schedule","description":"Python job scheduling for humans.","fork":false,"url":"https://api.github.com/repos/dbader/schedule","forks_url":"https://api.github.com/repos/dbader/schedule/forks","keys_url":"https://api.github.com/repos/dbader/schedule/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dbader/schedule/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dbader/schedule/teams","hooks_url":"https://api.github.com/repos/dbader/schedule/hooks","issue_events_url":"https://api.github.com/repos/dbader/schedule/issues/events{/number}","events_url":"https://api.github.com/repos/dbader/schedule/events","assignees_url":"https://api.github.com/repos/dbader/schedule/assignees{/user}","branches_url":"https://api.github.com/repos/dbader/schedule/branches{/branch}","tags_url":"https://api.github.com/repos/dbader/schedule/tags","blobs_url":"https://api.github.com/repos/dbader/schedule/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dbader/schedule/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dbader/schedule/git/refs{/sha}","trees_url":"https://api.github.com/repos/dbader/schedule/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dbader/schedule/statuses/{sha}","languages_url":"https://api.github.com/repos/dbader/schedule/languages","stargazers_url":"https://api.github.com/repos/dbader/schedule/stargazers","contributors_url":"https://api.github.com/repos/dbader/schedule/contributors","subscribers_url":"https://api.github.com/repos/dbader/schedule/subscribers","subscription_url":"https://api.github.com/repos/dbader/schedule/subscription","commits_url":"https://api.github.com/repos/dbader/schedule/commits{/sha}","git_commits_url":"https://api.github.com/repos/dbader/schedule/git/commits{/sha}","comments_url":"https://api.github.com/repos/dbader/schedule/comments{/number}","issue_comment_url":"https://api.github.com/repos/dbader/schedule/issues/comments{/number}","contents_url":"https://api.github.com/repos/dbader/schedule/contents/{+path}","compare_url":"https://api.github.com/repos/dbader/schedule/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dbader/schedule/merges","archive_url":"https://api.github.com/repos/dbader/schedule/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dbader/schedule/downloads","issues_url":"https://api.github.com/repos/dbader/schedule/issues{/number}","pulls_url":"https://api.github.com/repos/dbader/schedule/pulls{/number}","milestones_url":"https://api.github.com/repos/dbader/schedule/milestones{/number}","notifications_url":"https://api.github.com/repos/dbader/schedule/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dbader/schedule/labels{/name}","releases_url":"https://api.github.com/repos/dbader/schedule/releases{/id}","created_at":"2013-05-19T12:51:20Z","updated_at":"2015-10-06T17:21:11Z","pushed_at":"2015-09-09T00:42:55Z","git_url":"git://github.com/dbader/schedule.git","ssh_url":"git@github.com:dbader/schedule.git","clone_url":"https://github.com/dbader/schedule.git","svn_url":"https://github.com/dbader/schedule","homepage":"","size":586,"stargazers_count":1437,"watchers_count":1437,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":121,"mirror_url":null,"open_issues_count":18,"forks":121,"open_issues":18,"watchers":1437,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dbader/schedule/pulls/61"},"html":{"href":"https://github.com/dbader/schedule/pull/61"},"issue":{"href":"https://api.github.com/repos/dbader/schedule/issues/61"},"comments":{"href":"https://api.github.com/repos/dbader/schedule/issues/61/comments"},"review_comments":{"href":"https://api.github.com/repos/dbader/schedule/pulls/61/comments"},"review_comment":{"href":"https://api.github.com/repos/dbader/schedule/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dbader/schedule/pulls/61/commits"},"statuses":{"href":"https://api.github.com/repos/dbader/schedule/statuses/e29a7bdfc88a7b15254836fe9db6986af7c6d470"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":14,"deletions":3,"changed_files":3}}