{"action":"opened","number":7,"pull_request":{"url":"https://api.github.com/repos/sampsyo/cluster-workers/pulls/7","id":35591518,"html_url":"https://github.com/sampsyo/cluster-workers/pull/7","diff_url":"https://github.com/sampsyo/cluster-workers/pull/7.diff","patch_url":"https://github.com/sampsyo/cluster-workers/pull/7.patch","issue_url":"https://api.github.com/repos/sampsyo/cluster-workers/issues/7","number":7,"state":"open","locked":false,"title":"Refactor Slurm code into cw.slurm module.","user":{"login":"bholt","id":398411,"avatar_url":"https://avatars.githubusercontent.com/u/398411?v=3","gravatar_id":"","url":"https://api.github.com/users/bholt","html_url":"https://github.com/bholt","followers_url":"https://api.github.com/users/bholt/followers","following_url":"https://api.github.com/users/bholt/following{/other_user}","gists_url":"https://api.github.com/users/bholt/gists{/gist_id}","starred_url":"https://api.github.com/users/bholt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bholt/subscriptions","organizations_url":"https://api.github.com/users/bholt/orgs","repos_url":"https://api.github.com/users/bholt/repos","events_url":"https://api.github.com/users/bholt/events{/privacy}","received_events_url":"https://api.github.com/users/bholt/received_events","type":"User","site_admin":false},"body":"Now it is possible to programmatically start/stop a worker cluster from\r\na script (see square.py example).\r\n\r\nFixes #6.\r\n\r\n@sampsyo please feel free to fix (or tell me to fix) any style issues. I thought I'd make most of the functions \"module-local\" but we could go back on that. Also, if you'd prefer, we could make a separate example that illustrates starting and stopping the cluster programmatically so we don't clutter the squares.py example.","created_at":"2015-05-17T19:00:01Z","updated_at":"2015-05-17T19:00:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sampsyo/cluster-workers/pulls/7/commits","review_comments_url":"https://api.github.com/repos/sampsyo/cluster-workers/pulls/7/comments","review_comment_url":"https://api.github.com/repos/sampsyo/cluster-workers/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sampsyo/cluster-workers/issues/7/comments","statuses_url":"https://api.github.com/repos/sampsyo/cluster-workers/statuses/584a812d9cfafd680e470feaf6c10907a2da5e32","head":{"label":"bholt:master","ref":"master","sha":"584a812d9cfafd680e470feaf6c10907a2da5e32","user":{"login":"bholt","id":398411,"avatar_url":"https://avatars.githubusercontent.com/u/398411?v=3","gravatar_id":"","url":"https://api.github.com/users/bholt","html_url":"https://github.com/bholt","followers_url":"https://api.github.com/users/bholt/followers","following_url":"https://api.github.com/users/bholt/following{/other_user}","gists_url":"https://api.github.com/users/bholt/gists{/gist_id}","starred_url":"https://api.github.com/users/bholt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bholt/subscriptions","organizations_url":"https://api.github.com/users/bholt/orgs","repos_url":"https://api.github.com/users/bholt/repos","events_url":"https://api.github.com/users/bholt/events{/privacy}","received_events_url":"https://api.github.com/users/bholt/received_events","type":"User","site_admin":false},"repo":{"id":35748144,"name":"cluster-workers","full_name":"bholt/cluster-workers","owner":{"login":"bholt","id":398411,"avatar_url":"https://avatars.githubusercontent.com/u/398411?v=3","gravatar_id":"","url":"https://api.github.com/users/bholt","html_url":"https://github.com/bholt","followers_url":"https://api.github.com/users/bholt/followers","following_url":"https://api.github.com/users/bholt/following{/other_user}","gists_url":"https://api.github.com/users/bholt/gists{/gist_id}","starred_url":"https://api.github.com/users/bholt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bholt/subscriptions","organizations_url":"https://api.github.com/users/bholt/orgs","repos_url":"https://api.github.com/users/bholt/repos","events_url":"https://api.github.com/users/bholt/events{/privacy}","received_events_url":"https://api.github.com/users/bholt/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bholt/cluster-workers","description":"a Python client/master/worker system for distributing jobs in a cluster","fork":true,"url":"https://api.github.com/repos/bholt/cluster-workers","forks_url":"https://api.github.com/repos/bholt/cluster-workers/forks","keys_url":"https://api.github.com/repos/bholt/cluster-workers/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bholt/cluster-workers/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bholt/cluster-workers/teams","hooks_url":"https://api.github.com/repos/bholt/cluster-workers/hooks","issue_events_url":"https://api.github.com/repos/bholt/cluster-workers/issues/events{/number}","events_url":"https://api.github.com/repos/bholt/cluster-workers/events","assignees_url":"https://api.github.com/repos/bholt/cluster-workers/assignees{/user}","branches_url":"https://api.github.com/repos/bholt/cluster-workers/branches{/branch}","tags_url":"https://api.github.com/repos/bholt/cluster-workers/tags","blobs_url":"https://api.github.com/repos/bholt/cluster-workers/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bholt/cluster-workers/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bholt/cluster-workers/git/refs{/sha}","trees_url":"https://api.github.com/repos/bholt/cluster-workers/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bholt/cluster-workers/statuses/{sha}","languages_url":"https://api.github.com/repos/bholt/cluster-workers/languages","stargazers_url":"https://api.github.com/repos/bholt/cluster-workers/stargazers","contributors_url":"https://api.github.com/repos/bholt/cluster-workers/contributors","subscribers_url":"https://api.github.com/repos/bholt/cluster-workers/subscribers","subscription_url":"https://api.github.com/repos/bholt/cluster-workers/subscription","commits_url":"https://api.github.com/repos/bholt/cluster-workers/commits{/sha}","git_commits_url":"https://api.github.com/repos/bholt/cluster-workers/git/commits{/sha}","comments_url":"https://api.github.com/repos/bholt/cluster-workers/comments{/number}","issue_comment_url":"https://api.github.com/repos/bholt/cluster-workers/issues/comments{/number}","contents_url":"https://api.github.com/repos/bholt/cluster-workers/contents/{+path}","compare_url":"https://api.github.com/repos/bholt/cluster-workers/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bholt/cluster-workers/merges","archive_url":"https://api.github.com/repos/bholt/cluster-workers/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bholt/cluster-workers/downloads","issues_url":"https://api.github.com/repos/bholt/cluster-workers/issues{/number}","pulls_url":"https://api.github.com/repos/bholt/cluster-workers/pulls{/number}","milestones_url":"https://api.github.com/repos/bholt/cluster-workers/milestones{/number}","notifications_url":"https://api.github.com/repos/bholt/cluster-workers/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bholt/cluster-workers/labels{/name}","releases_url":"https://api.github.com/repos/bholt/cluster-workers/releases{/id}","created_at":"2015-05-17T02:08:28Z","updated_at":"2015-05-17T02:08:28Z","pushed_at":"2015-05-17T18:56:56Z","git_url":"git://github.com/bholt/cluster-workers.git","ssh_url":"git@github.com:bholt/cluster-workers.git","clone_url":"https://github.com/bholt/cluster-workers.git","svn_url":"https://github.com/bholt/cluster-workers","homepage":null,"size":119,"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":"sampsyo:master","ref":"master","sha":"a0bd6e5fc6965947339ddd3f323bb98fb3b5c6af","user":{"login":"sampsyo","id":188033,"avatar_url":"https://avatars.githubusercontent.com/u/188033?v=3","gravatar_id":"","url":"https://api.github.com/users/sampsyo","html_url":"https://github.com/sampsyo","followers_url":"https://api.github.com/users/sampsyo/followers","following_url":"https://api.github.com/users/sampsyo/following{/other_user}","gists_url":"https://api.github.com/users/sampsyo/gists{/gist_id}","starred_url":"https://api.github.com/users/sampsyo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sampsyo/subscriptions","organizations_url":"https://api.github.com/users/sampsyo/orgs","repos_url":"https://api.github.com/users/sampsyo/repos","events_url":"https://api.github.com/users/sampsyo/events{/privacy}","received_events_url":"https://api.github.com/users/sampsyo/received_events","type":"User","site_admin":false},"repo":{"id":5604593,"name":"cluster-workers","full_name":"sampsyo/cluster-workers","owner":{"login":"sampsyo","id":188033,"avatar_url":"https://avatars.githubusercontent.com/u/188033?v=3","gravatar_id":"","url":"https://api.github.com/users/sampsyo","html_url":"https://github.com/sampsyo","followers_url":"https://api.github.com/users/sampsyo/followers","following_url":"https://api.github.com/users/sampsyo/following{/other_user}","gists_url":"https://api.github.com/users/sampsyo/gists{/gist_id}","starred_url":"https://api.github.com/users/sampsyo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sampsyo/subscriptions","organizations_url":"https://api.github.com/users/sampsyo/orgs","repos_url":"https://api.github.com/users/sampsyo/repos","events_url":"https://api.github.com/users/sampsyo/events{/privacy}","received_events_url":"https://api.github.com/users/sampsyo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sampsyo/cluster-workers","description":"a Python client/master/worker system for distributing jobs in a cluster","fork":false,"url":"https://api.github.com/repos/sampsyo/cluster-workers","forks_url":"https://api.github.com/repos/sampsyo/cluster-workers/forks","keys_url":"https://api.github.com/repos/sampsyo/cluster-workers/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sampsyo/cluster-workers/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sampsyo/cluster-workers/teams","hooks_url":"https://api.github.com/repos/sampsyo/cluster-workers/hooks","issue_events_url":"https://api.github.com/repos/sampsyo/cluster-workers/issues/events{/number}","events_url":"https://api.github.com/repos/sampsyo/cluster-workers/events","assignees_url":"https://api.github.com/repos/sampsyo/cluster-workers/assignees{/user}","branches_url":"https://api.github.com/repos/sampsyo/cluster-workers/branches{/branch}","tags_url":"https://api.github.com/repos/sampsyo/cluster-workers/tags","blobs_url":"https://api.github.com/repos/sampsyo/cluster-workers/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sampsyo/cluster-workers/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sampsyo/cluster-workers/git/refs{/sha}","trees_url":"https://api.github.com/repos/sampsyo/cluster-workers/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sampsyo/cluster-workers/statuses/{sha}","languages_url":"https://api.github.com/repos/sampsyo/cluster-workers/languages","stargazers_url":"https://api.github.com/repos/sampsyo/cluster-workers/stargazers","contributors_url":"https://api.github.com/repos/sampsyo/cluster-workers/contributors","subscribers_url":"https://api.github.com/repos/sampsyo/cluster-workers/subscribers","subscription_url":"https://api.github.com/repos/sampsyo/cluster-workers/subscription","commits_url":"https://api.github.com/repos/sampsyo/cluster-workers/commits{/sha}","git_commits_url":"https://api.github.com/repos/sampsyo/cluster-workers/git/commits{/sha}","comments_url":"https://api.github.com/repos/sampsyo/cluster-workers/comments{/number}","issue_comment_url":"https://api.github.com/repos/sampsyo/cluster-workers/issues/comments{/number}","contents_url":"https://api.github.com/repos/sampsyo/cluster-workers/contents/{+path}","compare_url":"https://api.github.com/repos/sampsyo/cluster-workers/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sampsyo/cluster-workers/merges","archive_url":"https://api.github.com/repos/sampsyo/cluster-workers/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sampsyo/cluster-workers/downloads","issues_url":"https://api.github.com/repos/sampsyo/cluster-workers/issues{/number}","pulls_url":"https://api.github.com/repos/sampsyo/cluster-workers/pulls{/number}","milestones_url":"https://api.github.com/repos/sampsyo/cluster-workers/milestones{/number}","notifications_url":"https://api.github.com/repos/sampsyo/cluster-workers/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sampsyo/cluster-workers/labels{/name}","releases_url":"https://api.github.com/repos/sampsyo/cluster-workers/releases{/id}","created_at":"2012-08-29T18:17:50Z","updated_at":"2015-05-17T05:06:11Z","pushed_at":"2015-05-17T11:41:30Z","git_url":"git://github.com/sampsyo/cluster-workers.git","ssh_url":"git@github.com:sampsyo/cluster-workers.git","clone_url":"https://github.com/sampsyo/cluster-workers.git","svn_url":"https://github.com/sampsyo/cluster-workers","homepage":null,"size":223,"stargazers_count":20,"watchers_count":20,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":5,"forks":11,"open_issues":5,"watchers":20,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sampsyo/cluster-workers/pulls/7"},"html":{"href":"https://github.com/sampsyo/cluster-workers/pull/7"},"issue":{"href":"https://api.github.com/repos/sampsyo/cluster-workers/issues/7"},"comments":{"href":"https://api.github.com/repos/sampsyo/cluster-workers/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/sampsyo/cluster-workers/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/sampsyo/cluster-workers/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sampsyo/cluster-workers/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/sampsyo/cluster-workers/statuses/584a812d9cfafd680e470feaf6c10907a2da5e32"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":161,"deletions":130,"changed_files":4}}