{"action":"opened","number":1,"pull_request":{"url":"https://api.github.com/repos/globality-corp/microcosm-daemon/pulls/1","id":63981776,"html_url":"https://github.com/globality-corp/microcosm-daemon/pull/1","diff_url":"https://github.com/globality-corp/microcosm-daemon/pull/1.diff","patch_url":"https://github.com/globality-corp/microcosm-daemon/pull/1.patch","issue_url":"https://api.github.com/repos/globality-corp/microcosm-daemon/issues/1","number":1,"state":"open","locked":false,"title":"A state machine for daemon/worker processing","user":{"login":"jessemyers","id":477722,"avatar_url":"https://avatars.githubusercontent.com/u/477722?v=3","gravatar_id":"","url":"https://api.github.com/users/jessemyers","html_url":"https://github.com/jessemyers","followers_url":"https://api.github.com/users/jessemyers/followers","following_url":"https://api.github.com/users/jessemyers/following{/other_user}","gists_url":"https://api.github.com/users/jessemyers/gists{/gist_id}","starred_url":"https://api.github.com/users/jessemyers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jessemyers/subscriptions","organizations_url":"https://api.github.com/users/jessemyers/orgs","repos_url":"https://api.github.com/users/jessemyers/repos","events_url":"https://api.github.com/users/jessemyers/events{/privacy}","received_events_url":"https://api.github.com/users/jessemyers/received_events","type":"User","site_admin":false},"body":"Basics:\r\n - There's a state machine that calls a worker function\r\n - The worker function can transition to a different worker function by returning a callable\r\n - The worker function can raise `SleepNow` to introduce a delay until it is next called\r\n - The worker function can raise exceptions; these will be swallowed by default (although the error handler can be configured to be `strict` and raise every error, always).\r\n - The worker function can raise `FatalError` to always abort the state machine loop\r\n\r\nWhat's missing:\r\n - Some real testing, integrated with actual use cases (e.g. pubsub)\r\n - Error reporting, whether as logs or as a more formal \"health check\"\r\n - Multiprocessing","created_at":"2016-03-24T02:27:54Z","updated_at":"2016-03-24T02:27:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/globality-corp/microcosm-daemon/pulls/1/commits","review_comments_url":"https://api.github.com/repos/globality-corp/microcosm-daemon/pulls/1/comments","review_comment_url":"https://api.github.com/repos/globality-corp/microcosm-daemon/pulls/comments{/number}","comments_url":"https://api.github.com/repos/globality-corp/microcosm-daemon/issues/1/comments","statuses_url":"https://api.github.com/repos/globality-corp/microcosm-daemon/statuses/c281e7923802818bf492d44203046480fe7b2827","head":{"label":"globality-corp:feature/initial-structure","ref":"feature/initial-structure","sha":"c281e7923802818bf492d44203046480fe7b2827","user":{"login":"globality-corp","id":11172782,"avatar_url":"https://avatars.githubusercontent.com/u/11172782?v=3","gravatar_id":"","url":"https://api.github.com/users/globality-corp","html_url":"https://github.com/globality-corp","followers_url":"https://api.github.com/users/globality-corp/followers","following_url":"https://api.github.com/users/globality-corp/following{/other_user}","gists_url":"https://api.github.com/users/globality-corp/gists{/gist_id}","starred_url":"https://api.github.com/users/globality-corp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/globality-corp/subscriptions","organizations_url":"https://api.github.com/users/globality-corp/orgs","repos_url":"https://api.github.com/users/globality-corp/repos","events_url":"https://api.github.com/users/globality-corp/events{/privacy}","received_events_url":"https://api.github.com/users/globality-corp/received_events","type":"Organization","site_admin":false},"repo":{"id":54607813,"name":"microcosm-daemon","full_name":"globality-corp/microcosm-daemon","owner":{"login":"globality-corp","id":11172782,"avatar_url":"https://avatars.githubusercontent.com/u/11172782?v=3","gravatar_id":"","url":"https://api.github.com/users/globality-corp","html_url":"https://github.com/globality-corp","followers_url":"https://api.github.com/users/globality-corp/followers","following_url":"https://api.github.com/users/globality-corp/following{/other_user}","gists_url":"https://api.github.com/users/globality-corp/gists{/gist_id}","starred_url":"https://api.github.com/users/globality-corp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/globality-corp/subscriptions","organizations_url":"https://api.github.com/users/globality-corp/orgs","repos_url":"https://api.github.com/users/globality-corp/repos","events_url":"https://api.github.com/users/globality-corp/events{/privacy}","received_events_url":"https://api.github.com/users/globality-corp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/globality-corp/microcosm-daemon","description":"Asynchronous workers using a state machine.","fork":false,"url":"https://api.github.com/repos/globality-corp/microcosm-daemon","forks_url":"https://api.github.com/repos/globality-corp/microcosm-daemon/forks","keys_url":"https://api.github.com/repos/globality-corp/microcosm-daemon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/globality-corp/microcosm-daemon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/globality-corp/microcosm-daemon/teams","hooks_url":"https://api.github.com/repos/globality-corp/microcosm-daemon/hooks","issue_events_url":"https://api.github.com/repos/globality-corp/microcosm-daemon/issues/events{/number}","events_url":"https://api.github.com/repos/globality-corp/microcosm-daemon/events","assignees_url":"https://api.github.com/repos/globality-corp/microcosm-daemon/assignees{/user}","branches_url":"https://api.github.com/repos/globality-corp/microcosm-daemon/branches{/branch}","tags_url":"https://api.github.com/repos/globality-corp/microcosm-daemon/tags","blobs_url":"https://api.github.com/repos/globality-corp/microcosm-daemon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/globality-corp/microcosm-daemon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/globality-corp/microcosm-daemon/git/refs{/sha}","trees_url":"https://api.github.com/repos/globality-corp/microcosm-daemon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/globality-corp/microcosm-daemon/statuses/{sha}","languages_url":"https://api.github.com/repos/globality-corp/microcosm-daemon/languages","stargazers_url":"https://api.github.com/repos/globality-corp/microcosm-daemon/stargazers","contributors_url":"https://api.github.com/repos/globality-corp/microcosm-daemon/contributors","subscribers_url":"https://api.github.com/repos/globality-corp/microcosm-daemon/subscribers","subscription_url":"https://api.github.com/repos/globality-corp/microcosm-daemon/subscription","commits_url":"https://api.github.com/repos/globality-corp/microcosm-daemon/commits{/sha}","git_commits_url":"https://api.github.com/repos/globality-corp/microcosm-daemon/git/commits{/sha}","comments_url":"https://api.github.com/repos/globality-corp/microcosm-daemon/comments{/number}","issue_comment_url":"https://api.github.com/repos/globality-corp/microcosm-daemon/issues/comments{/number}","contents_url":"https://api.github.com/repos/globality-corp/microcosm-daemon/contents/{+path}","compare_url":"https://api.github.com/repos/globality-corp/microcosm-daemon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/globality-corp/microcosm-daemon/merges","archive_url":"https://api.github.com/repos/globality-corp/microcosm-daemon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/globality-corp/microcosm-daemon/downloads","issues_url":"https://api.github.com/repos/globality-corp/microcosm-daemon/issues{/number}","pulls_url":"https://api.github.com/repos/globality-corp/microcosm-daemon/pulls{/number}","milestones_url":"https://api.github.com/repos/globality-corp/microcosm-daemon/milestones{/number}","notifications_url":"https://api.github.com/repos/globality-corp/microcosm-daemon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/globality-corp/microcosm-daemon/labels{/name}","releases_url":"https://api.github.com/repos/globality-corp/microcosm-daemon/releases{/id}","deployments_url":"https://api.github.com/repos/globality-corp/microcosm-daemon/deployments","created_at":"2016-03-24T02:15:57Z","updated_at":"2016-03-24T02:15:57Z","pushed_at":"2016-03-24T02:18:57Z","git_url":"git://github.com/globality-corp/microcosm-daemon.git","ssh_url":"git@github.com:globality-corp/microcosm-daemon.git","clone_url":"https://github.com/globality-corp/microcosm-daemon.git","svn_url":"https://github.com/globality-corp/microcosm-daemon","homepage":null,"size":10,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"develop"}},"base":{"label":"globality-corp:develop","ref":"develop","sha":"1036fe988b079fd07f7032c3b36bafe47039cce9","user":{"login":"globality-corp","id":11172782,"avatar_url":"https://avatars.githubusercontent.com/u/11172782?v=3","gravatar_id":"","url":"https://api.github.com/users/globality-corp","html_url":"https://github.com/globality-corp","followers_url":"https://api.github.com/users/globality-corp/followers","following_url":"https://api.github.com/users/globality-corp/following{/other_user}","gists_url":"https://api.github.com/users/globality-corp/gists{/gist_id}","starred_url":"https://api.github.com/users/globality-corp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/globality-corp/subscriptions","organizations_url":"https://api.github.com/users/globality-corp/orgs","repos_url":"https://api.github.com/users/globality-corp/repos","events_url":"https://api.github.com/users/globality-corp/events{/privacy}","received_events_url":"https://api.github.com/users/globality-corp/received_events","type":"Organization","site_admin":false},"repo":{"id":54607813,"name":"microcosm-daemon","full_name":"globality-corp/microcosm-daemon","owner":{"login":"globality-corp","id":11172782,"avatar_url":"https://avatars.githubusercontent.com/u/11172782?v=3","gravatar_id":"","url":"https://api.github.com/users/globality-corp","html_url":"https://github.com/globality-corp","followers_url":"https://api.github.com/users/globality-corp/followers","following_url":"https://api.github.com/users/globality-corp/following{/other_user}","gists_url":"https://api.github.com/users/globality-corp/gists{/gist_id}","starred_url":"https://api.github.com/users/globality-corp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/globality-corp/subscriptions","organizations_url":"https://api.github.com/users/globality-corp/orgs","repos_url":"https://api.github.com/users/globality-corp/repos","events_url":"https://api.github.com/users/globality-corp/events{/privacy}","received_events_url":"https://api.github.com/users/globality-corp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/globality-corp/microcosm-daemon","description":"Asynchronous workers using a state machine.","fork":false,"url":"https://api.github.com/repos/globality-corp/microcosm-daemon","forks_url":"https://api.github.com/repos/globality-corp/microcosm-daemon/forks","keys_url":"https://api.github.com/repos/globality-corp/microcosm-daemon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/globality-corp/microcosm-daemon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/globality-corp/microcosm-daemon/teams","hooks_url":"https://api.github.com/repos/globality-corp/microcosm-daemon/hooks","issue_events_url":"https://api.github.com/repos/globality-corp/microcosm-daemon/issues/events{/number}","events_url":"https://api.github.com/repos/globality-corp/microcosm-daemon/events","assignees_url":"https://api.github.com/repos/globality-corp/microcosm-daemon/assignees{/user}","branches_url":"https://api.github.com/repos/globality-corp/microcosm-daemon/branches{/branch}","tags_url":"https://api.github.com/repos/globality-corp/microcosm-daemon/tags","blobs_url":"https://api.github.com/repos/globality-corp/microcosm-daemon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/globality-corp/microcosm-daemon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/globality-corp/microcosm-daemon/git/refs{/sha}","trees_url":"https://api.github.com/repos/globality-corp/microcosm-daemon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/globality-corp/microcosm-daemon/statuses/{sha}","languages_url":"https://api.github.com/repos/globality-corp/microcosm-daemon/languages","stargazers_url":"https://api.github.com/repos/globality-corp/microcosm-daemon/stargazers","contributors_url":"https://api.github.com/repos/globality-corp/microcosm-daemon/contributors","subscribers_url":"https://api.github.com/repos/globality-corp/microcosm-daemon/subscribers","subscription_url":"https://api.github.com/repos/globality-corp/microcosm-daemon/subscription","commits_url":"https://api.github.com/repos/globality-corp/microcosm-daemon/commits{/sha}","git_commits_url":"https://api.github.com/repos/globality-corp/microcosm-daemon/git/commits{/sha}","comments_url":"https://api.github.com/repos/globality-corp/microcosm-daemon/comments{/number}","issue_comment_url":"https://api.github.com/repos/globality-corp/microcosm-daemon/issues/comments{/number}","contents_url":"https://api.github.com/repos/globality-corp/microcosm-daemon/contents/{+path}","compare_url":"https://api.github.com/repos/globality-corp/microcosm-daemon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/globality-corp/microcosm-daemon/merges","archive_url":"https://api.github.com/repos/globality-corp/microcosm-daemon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/globality-corp/microcosm-daemon/downloads","issues_url":"https://api.github.com/repos/globality-corp/microcosm-daemon/issues{/number}","pulls_url":"https://api.github.com/repos/globality-corp/microcosm-daemon/pulls{/number}","milestones_url":"https://api.github.com/repos/globality-corp/microcosm-daemon/milestones{/number}","notifications_url":"https://api.github.com/repos/globality-corp/microcosm-daemon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/globality-corp/microcosm-daemon/labels{/name}","releases_url":"https://api.github.com/repos/globality-corp/microcosm-daemon/releases{/id}","deployments_url":"https://api.github.com/repos/globality-corp/microcosm-daemon/deployments","created_at":"2016-03-24T02:15:57Z","updated_at":"2016-03-24T02:15:57Z","pushed_at":"2016-03-24T02:18:57Z","git_url":"git://github.com/globality-corp/microcosm-daemon.git","ssh_url":"git@github.com:globality-corp/microcosm-daemon.git","clone_url":"https://github.com/globality-corp/microcosm-daemon.git","svn_url":"https://github.com/globality-corp/microcosm-daemon","homepage":null,"size":10,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/globality-corp/microcosm-daemon/pulls/1"},"html":{"href":"https://github.com/globality-corp/microcosm-daemon/pull/1"},"issue":{"href":"https://api.github.com/repos/globality-corp/microcosm-daemon/issues/1"},"comments":{"href":"https://api.github.com/repos/globality-corp/microcosm-daemon/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/globality-corp/microcosm-daemon/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/globality-corp/microcosm-daemon/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/globality-corp/microcosm-daemon/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/globality-corp/microcosm-daemon/statuses/c281e7923802818bf492d44203046480fe7b2827"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":2,"additions":685,"deletions":0,"changed_files":19}}