{"action":"created","comment":{"url":"https://api.github.com/repos/thieman/dagobah/pulls/comments/31713217","id":31713217,"diff_hunk":"@@ -252,6 +256,37 @@ def add_task_to_job(self, job_or_job_name, task_command, task_name=None,\n         job.add_task(task_command, task_name, **kwargs)\n         job.commit()\n \n+\n+    def add_jobtask_to_job(self, job_or_job_name, target_job, task_name=None,\n+                        **kwargs):\n+        \"\"\" Add a task to a job owned by the Dagobah instance. \"\"\"\n+\n+        if isinstance(job_or_job_name, Job):\n+            job = job_or_job_name\n+        else:\n+            job = self.get_job(job_or_job_name)\n+","path":"dagobah/core/core.py","position":35,"original_position":36,"commit_id":"6844a8b5f0369e203a47e3b73a0d80218b695dd8","original_commit_id":"92db40e8f69ad1169d52b285476625fb877b5fc8","user":{"login":"thieman","id":1414305,"avatar_url":"https://avatars.githubusercontent.com/u/1414305?v=3","gravatar_id":"","url":"https://api.github.com/users/thieman","html_url":"https://github.com/thieman","followers_url":"https://api.github.com/users/thieman/followers","following_url":"https://api.github.com/users/thieman/following{/other_user}","gists_url":"https://api.github.com/users/thieman/gists{/gist_id}","starred_url":"https://api.github.com/users/thieman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thieman/subscriptions","organizations_url":"https://api.github.com/users/thieman/orgs","repos_url":"https://api.github.com/users/thieman/repos","events_url":"https://api.github.com/users/thieman/events{/privacy}","received_events_url":"https://api.github.com/users/thieman/received_events","type":"User","site_admin":false},"body":"+1 maybe call it something like `_resolve_job` since if you're already passing it a Job it isn't going to get anything.","created_at":"2015-06-04T11:50:33Z","updated_at":"2015-06-04T11:50:33Z","html_url":"https://github.com/thieman/dagobah/pull/155#discussion_r31713217","pull_request_url":"https://api.github.com/repos/thieman/dagobah/pulls/155","_links":{"self":{"href":"https://api.github.com/repos/thieman/dagobah/pulls/comments/31713217"},"html":{"href":"https://github.com/thieman/dagobah/pull/155#discussion_r31713217"},"pull_request":{"href":"https://api.github.com/repos/thieman/dagobah/pulls/155"}}},"pull_request":{"url":"https://api.github.com/repos/thieman/dagobah/pulls/155","id":36880177,"html_url":"https://github.com/thieman/dagobah/pull/155","diff_url":"https://github.com/thieman/dagobah/pull/155.diff","patch_url":"https://github.com/thieman/dagobah/pull/155.patch","issue_url":"https://api.github.com/repos/thieman/dagobah/issues/155","number":155,"state":"open","locked":false,"title":"Job-in-Job Data model support for mongo","user":{"login":"rclough","id":186589,"avatar_url":"https://avatars.githubusercontent.com/u/186589?v=3","gravatar_id":"","url":"https://api.github.com/users/rclough","html_url":"https://github.com/rclough","followers_url":"https://api.github.com/users/rclough/followers","following_url":"https://api.github.com/users/rclough/following{/other_user}","gists_url":"https://api.github.com/users/rclough/gists{/gist_id}","starred_url":"https://api.github.com/users/rclough/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rclough/subscriptions","organizations_url":"https://api.github.com/users/rclough/orgs","repos_url":"https://api.github.com/users/rclough/repos","events_url":"https://api.github.com/users/rclough/events{/privacy}","received_events_url":"https://api.github.com/users/rclough/received_events","type":"User","site_admin":false},"body":"This PR gives support for the concept of a `JobTask`, which is a task that references another job. It also provides methods to distinguish them (`is_expandable` and `is_runnable`) as well as methods to add a `JobTask` to the graph (in the back end)\r\n\r\nI'm putting up this PR so that it can be reviewed ASAP, but I am still working on adding unit tests.","created_at":"2015-06-03T21:29:08Z","updated_at":"2015-06-04T11:50:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d71c2decdbc563e8a0de364d88f2cde37f26e02c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/thieman/dagobah/pulls/155/commits","review_comments_url":"https://api.github.com/repos/thieman/dagobah/pulls/155/comments","review_comment_url":"https://api.github.com/repos/thieman/dagobah/pulls/comments{/number}","comments_url":"https://api.github.com/repos/thieman/dagobah/issues/155/comments","statuses_url":"https://api.github.com/repos/thieman/dagobah/statuses/6844a8b5f0369e203a47e3b73a0d80218b695dd8","head":{"label":"rclough:rmc-job-in-job-datamodel","ref":"rmc-job-in-job-datamodel","sha":"6844a8b5f0369e203a47e3b73a0d80218b695dd8","user":{"login":"rclough","id":186589,"avatar_url":"https://avatars.githubusercontent.com/u/186589?v=3","gravatar_id":"","url":"https://api.github.com/users/rclough","html_url":"https://github.com/rclough","followers_url":"https://api.github.com/users/rclough/followers","following_url":"https://api.github.com/users/rclough/following{/other_user}","gists_url":"https://api.github.com/users/rclough/gists{/gist_id}","starred_url":"https://api.github.com/users/rclough/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rclough/subscriptions","organizations_url":"https://api.github.com/users/rclough/orgs","repos_url":"https://api.github.com/users/rclough/repos","events_url":"https://api.github.com/users/rclough/events{/privacy}","received_events_url":"https://api.github.com/users/rclough/received_events","type":"User","site_admin":false},"repo":{"id":19712189,"name":"dagobah","full_name":"rclough/dagobah","owner":{"login":"rclough","id":186589,"avatar_url":"https://avatars.githubusercontent.com/u/186589?v=3","gravatar_id":"","url":"https://api.github.com/users/rclough","html_url":"https://github.com/rclough","followers_url":"https://api.github.com/users/rclough/followers","following_url":"https://api.github.com/users/rclough/following{/other_user}","gists_url":"https://api.github.com/users/rclough/gists{/gist_id}","starred_url":"https://api.github.com/users/rclough/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rclough/subscriptions","organizations_url":"https://api.github.com/users/rclough/orgs","repos_url":"https://api.github.com/users/rclough/repos","events_url":"https://api.github.com/users/rclough/events{/privacy}","received_events_url":"https://api.github.com/users/rclough/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rclough/dagobah","description":"Simple DAG-based job scheduler in Python","fork":true,"url":"https://api.github.com/repos/rclough/dagobah","forks_url":"https://api.github.com/repos/rclough/dagobah/forks","keys_url":"https://api.github.com/repos/rclough/dagobah/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rclough/dagobah/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rclough/dagobah/teams","hooks_url":"https://api.github.com/repos/rclough/dagobah/hooks","issue_events_url":"https://api.github.com/repos/rclough/dagobah/issues/events{/number}","events_url":"https://api.github.com/repos/rclough/dagobah/events","assignees_url":"https://api.github.com/repos/rclough/dagobah/assignees{/user}","branches_url":"https://api.github.com/repos/rclough/dagobah/branches{/branch}","tags_url":"https://api.github.com/repos/rclough/dagobah/tags","blobs_url":"https://api.github.com/repos/rclough/dagobah/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rclough/dagobah/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rclough/dagobah/git/refs{/sha}","trees_url":"https://api.github.com/repos/rclough/dagobah/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rclough/dagobah/statuses/{sha}","languages_url":"https://api.github.com/repos/rclough/dagobah/languages","stargazers_url":"https://api.github.com/repos/rclough/dagobah/stargazers","contributors_url":"https://api.github.com/repos/rclough/dagobah/contributors","subscribers_url":"https://api.github.com/repos/rclough/dagobah/subscribers","subscription_url":"https://api.github.com/repos/rclough/dagobah/subscription","commits_url":"https://api.github.com/repos/rclough/dagobah/commits{/sha}","git_commits_url":"https://api.github.com/repos/rclough/dagobah/git/commits{/sha}","comments_url":"https://api.github.com/repos/rclough/dagobah/comments{/number}","issue_comment_url":"https://api.github.com/repos/rclough/dagobah/issues/comments{/number}","contents_url":"https://api.github.com/repos/rclough/dagobah/contents/{+path}","compare_url":"https://api.github.com/repos/rclough/dagobah/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rclough/dagobah/merges","archive_url":"https://api.github.com/repos/rclough/dagobah/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rclough/dagobah/downloads","issues_url":"https://api.github.com/repos/rclough/dagobah/issues{/number}","pulls_url":"https://api.github.com/repos/rclough/dagobah/pulls{/number}","milestones_url":"https://api.github.com/repos/rclough/dagobah/milestones{/number}","notifications_url":"https://api.github.com/repos/rclough/dagobah/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rclough/dagobah/labels{/name}","releases_url":"https://api.github.com/repos/rclough/dagobah/releases{/id}","created_at":"2014-05-12T19:28:19Z","updated_at":"2014-12-01T23:27:49Z","pushed_at":"2015-06-03T21:33:05Z","git_url":"git://github.com/rclough/dagobah.git","ssh_url":"git@github.com:rclough/dagobah.git","clone_url":"https://github.com/rclough/dagobah.git","svn_url":"https://github.com/rclough/dagobah","homepage":null,"size":2615,"stargazers_count":0,"watchers_count":0,"language":"CSS","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":"thieman:master","ref":"master","sha":"4a04970d0b3ce6c780823a73d8084f8464d47bae","user":{"login":"thieman","id":1414305,"avatar_url":"https://avatars.githubusercontent.com/u/1414305?v=3","gravatar_id":"","url":"https://api.github.com/users/thieman","html_url":"https://github.com/thieman","followers_url":"https://api.github.com/users/thieman/followers","following_url":"https://api.github.com/users/thieman/following{/other_user}","gists_url":"https://api.github.com/users/thieman/gists{/gist_id}","starred_url":"https://api.github.com/users/thieman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thieman/subscriptions","organizations_url":"https://api.github.com/users/thieman/orgs","repos_url":"https://api.github.com/users/thieman/repos","events_url":"https://api.github.com/users/thieman/events{/privacy}","received_events_url":"https://api.github.com/users/thieman/received_events","type":"User","site_admin":false},"repo":{"id":9983531,"name":"dagobah","full_name":"thieman/dagobah","owner":{"login":"thieman","id":1414305,"avatar_url":"https://avatars.githubusercontent.com/u/1414305?v=3","gravatar_id":"","url":"https://api.github.com/users/thieman","html_url":"https://github.com/thieman","followers_url":"https://api.github.com/users/thieman/followers","following_url":"https://api.github.com/users/thieman/following{/other_user}","gists_url":"https://api.github.com/users/thieman/gists{/gist_id}","starred_url":"https://api.github.com/users/thieman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thieman/subscriptions","organizations_url":"https://api.github.com/users/thieman/orgs","repos_url":"https://api.github.com/users/thieman/repos","events_url":"https://api.github.com/users/thieman/events{/privacy}","received_events_url":"https://api.github.com/users/thieman/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/thieman/dagobah","description":"Simple DAG-based job scheduler in Python","fork":false,"url":"https://api.github.com/repos/thieman/dagobah","forks_url":"https://api.github.com/repos/thieman/dagobah/forks","keys_url":"https://api.github.com/repos/thieman/dagobah/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thieman/dagobah/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thieman/dagobah/teams","hooks_url":"https://api.github.com/repos/thieman/dagobah/hooks","issue_events_url":"https://api.github.com/repos/thieman/dagobah/issues/events{/number}","events_url":"https://api.github.com/repos/thieman/dagobah/events","assignees_url":"https://api.github.com/repos/thieman/dagobah/assignees{/user}","branches_url":"https://api.github.com/repos/thieman/dagobah/branches{/branch}","tags_url":"https://api.github.com/repos/thieman/dagobah/tags","blobs_url":"https://api.github.com/repos/thieman/dagobah/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thieman/dagobah/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thieman/dagobah/git/refs{/sha}","trees_url":"https://api.github.com/repos/thieman/dagobah/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thieman/dagobah/statuses/{sha}","languages_url":"https://api.github.com/repos/thieman/dagobah/languages","stargazers_url":"https://api.github.com/repos/thieman/dagobah/stargazers","contributors_url":"https://api.github.com/repos/thieman/dagobah/contributors","subscribers_url":"https://api.github.com/repos/thieman/dagobah/subscribers","subscription_url":"https://api.github.com/repos/thieman/dagobah/subscription","commits_url":"https://api.github.com/repos/thieman/dagobah/commits{/sha}","git_commits_url":"https://api.github.com/repos/thieman/dagobah/git/commits{/sha}","comments_url":"https://api.github.com/repos/thieman/dagobah/comments{/number}","issue_comment_url":"https://api.github.com/repos/thieman/dagobah/issues/comments{/number}","contents_url":"https://api.github.com/repos/thieman/dagobah/contents/{+path}","compare_url":"https://api.github.com/repos/thieman/dagobah/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thieman/dagobah/merges","archive_url":"https://api.github.com/repos/thieman/dagobah/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thieman/dagobah/downloads","issues_url":"https://api.github.com/repos/thieman/dagobah/issues{/number}","pulls_url":"https://api.github.com/repos/thieman/dagobah/pulls{/number}","milestones_url":"https://api.github.com/repos/thieman/dagobah/milestones{/number}","notifications_url":"https://api.github.com/repos/thieman/dagobah/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thieman/dagobah/labels{/name}","releases_url":"https://api.github.com/repos/thieman/dagobah/releases{/id}","created_at":"2013-05-10T14:48:40Z","updated_at":"2015-06-02T01:39:31Z","pushed_at":"2015-06-03T21:33:05Z","git_url":"git://github.com/thieman/dagobah.git","ssh_url":"git@github.com:thieman/dagobah.git","clone_url":"https://github.com/thieman/dagobah.git","svn_url":"https://github.com/thieman/dagobah","homepage":null,"size":4086,"stargazers_count":269,"watchers_count":269,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":48,"mirror_url":null,"open_issues_count":46,"forks":48,"open_issues":46,"watchers":269,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/thieman/dagobah/pulls/155"},"html":{"href":"https://github.com/thieman/dagobah/pull/155"},"issue":{"href":"https://api.github.com/repos/thieman/dagobah/issues/155"},"comments":{"href":"https://api.github.com/repos/thieman/dagobah/issues/155/comments"},"review_comments":{"href":"https://api.github.com/repos/thieman/dagobah/pulls/155/comments"},"review_comment":{"href":"https://api.github.com/repos/thieman/dagobah/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/thieman/dagobah/pulls/155/commits"},"statuses":{"href":"https://api.github.com/repos/thieman/dagobah/statuses/6844a8b5f0369e203a47e3b73a0d80218b695dd8"}}}}