{"action":"created","comment":{"url":"https://api.github.com/repos/HubSpot/Singularity/pulls/comments/26228728","id":26228728,"diff_hunk":"@@ -29,6 +29,12 @@ class TailView extends View\n         @listenTo @collection, 'sync', =>\n             @$el.removeClass 'fetching-data'\n \n+        @listenTo @model, 'change', @setTaskHistory","path":"SingularityUI/app/views/tail.coffee","position":4,"original_position":4,"commit_id":"a808829defe3542895bc269b06ff5ae20d6ea262","original_commit_id":"a808829defe3542895bc269b06ff5ae20d6ea262","user":{"login":"benrlodge","id":3275453,"avatar_url":"https://avatars.githubusercontent.com/u/3275453?v=3","gravatar_id":"","url":"https://api.github.com/users/benrlodge","html_url":"https://github.com/benrlodge","followers_url":"https://api.github.com/users/benrlodge/followers","following_url":"https://api.github.com/users/benrlodge/following{/other_user}","gists_url":"https://api.github.com/users/benrlodge/gists{/gist_id}","starred_url":"https://api.github.com/users/benrlodge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benrlodge/subscriptions","organizations_url":"https://api.github.com/users/benrlodge/orgs","repos_url":"https://api.github.com/users/benrlodge/repos","events_url":"https://api.github.com/users/benrlodge/events{/privacy}","received_events_url":"https://api.github.com/users/benrlodge/received_events","type":"User","site_admin":false},"body":"yep that will work","created_at":"2015-03-11T16:30:27Z","updated_at":"2015-03-11T16:30:27Z","html_url":"https://github.com/HubSpot/Singularity/pull/477#discussion_r26228728","pull_request_url":"https://api.github.com/repos/HubSpot/Singularity/pulls/477","_links":{"self":{"href":"https://api.github.com/repos/HubSpot/Singularity/pulls/comments/26228728"},"html":{"href":"https://github.com/HubSpot/Singularity/pull/477#discussion_r26228728"},"pull_request":{"href":"https://api.github.com/repos/HubSpot/Singularity/pulls/477"}}},"pull_request":{"url":"https://api.github.com/repos/HubSpot/Singularity/pulls/477","id":30951235,"html_url":"https://github.com/HubSpot/Singularity/pull/477","diff_url":"https://github.com/HubSpot/Singularity/pull/477.diff","patch_url":"https://github.com/HubSpot/Singularity/pull/477.patch","issue_url":"https://api.github.com/repos/HubSpot/Singularity/issues/477","number":477,"state":"open","locked":false,"title":"stop tailing when task has finished","user":{"login":"benrlodge","id":3275453,"avatar_url":"https://avatars.githubusercontent.com/u/3275453?v=3","gravatar_id":"","url":"https://api.github.com/users/benrlodge","html_url":"https://github.com/benrlodge","followers_url":"https://api.github.com/users/benrlodge/followers","following_url":"https://api.github.com/users/benrlodge/following{/other_user}","gists_url":"https://api.github.com/users/benrlodge/gists{/gist_id}","starred_url":"https://api.github.com/users/benrlodge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benrlodge/subscriptions","organizations_url":"https://api.github.com/users/benrlodge/orgs","repos_url":"https://api.github.com/users/benrlodge/repos","events_url":"https://api.github.com/users/benrlodge/events{/privacy}","received_events_url":"https://api.github.com/users/benrlodge/received_events","type":"User","site_admin":false},"body":"right now the log tailing view will periodically hit Singularity for more data indefinitely, but when a task completes, it's a pretty safe bet that we're never going to get any more data from it. we should only auto-tail a task if it hasn't hit a terminal task state.\r\n\r\n@tpetr ","created_at":"2015-03-11T15:02:01Z","updated_at":"2015-03-11T16:30:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9cbe8276bef1116512079bf87cf7f4b594944de8","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/HubSpot/Singularity/pulls/477/commits","review_comments_url":"https://api.github.com/repos/HubSpot/Singularity/pulls/477/comments","review_comment_url":"https://api.github.com/repos/HubSpot/Singularity/pulls/comments{/number}","comments_url":"https://api.github.com/repos/HubSpot/Singularity/issues/477/comments","statuses_url":"https://api.github.com/repos/HubSpot/Singularity/statuses/a808829defe3542895bc269b06ff5ae20d6ea262","head":{"label":"HubSpot:stop_tailing_finished_tasks","ref":"stop_tailing_finished_tasks","sha":"a808829defe3542895bc269b06ff5ae20d6ea262","user":{"login":"HubSpot","id":326419,"avatar_url":"https://avatars.githubusercontent.com/u/326419?v=3","gravatar_id":"","url":"https://api.github.com/users/HubSpot","html_url":"https://github.com/HubSpot","followers_url":"https://api.github.com/users/HubSpot/followers","following_url":"https://api.github.com/users/HubSpot/following{/other_user}","gists_url":"https://api.github.com/users/HubSpot/gists{/gist_id}","starred_url":"https://api.github.com/users/HubSpot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HubSpot/subscriptions","organizations_url":"https://api.github.com/users/HubSpot/orgs","repos_url":"https://api.github.com/users/HubSpot/repos","events_url":"https://api.github.com/users/HubSpot/events{/privacy}","received_events_url":"https://api.github.com/users/HubSpot/received_events","type":"Organization","site_admin":false},"repo":{"id":13631804,"name":"Singularity","full_name":"HubSpot/Singularity","owner":{"login":"HubSpot","id":326419,"avatar_url":"https://avatars.githubusercontent.com/u/326419?v=3","gravatar_id":"","url":"https://api.github.com/users/HubSpot","html_url":"https://github.com/HubSpot","followers_url":"https://api.github.com/users/HubSpot/followers","following_url":"https://api.github.com/users/HubSpot/following{/other_user}","gists_url":"https://api.github.com/users/HubSpot/gists{/gist_id}","starred_url":"https://api.github.com/users/HubSpot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HubSpot/subscriptions","organizations_url":"https://api.github.com/users/HubSpot/orgs","repos_url":"https://api.github.com/users/HubSpot/repos","events_url":"https://api.github.com/users/HubSpot/events{/privacy}","received_events_url":"https://api.github.com/users/HubSpot/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/HubSpot/Singularity","description":"Scheduler (HTTP API and webapp) for running mesos tasks—long running processes, one-off tasks, and scheduled jobs. #hubspot-open-source","fork":false,"url":"https://api.github.com/repos/HubSpot/Singularity","forks_url":"https://api.github.com/repos/HubSpot/Singularity/forks","keys_url":"https://api.github.com/repos/HubSpot/Singularity/keys{/key_id}","collaborators_url":"https://api.github.com/repos/HubSpot/Singularity/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/HubSpot/Singularity/teams","hooks_url":"https://api.github.com/repos/HubSpot/Singularity/hooks","issue_events_url":"https://api.github.com/repos/HubSpot/Singularity/issues/events{/number}","events_url":"https://api.github.com/repos/HubSpot/Singularity/events","assignees_url":"https://api.github.com/repos/HubSpot/Singularity/assignees{/user}","branches_url":"https://api.github.com/repos/HubSpot/Singularity/branches{/branch}","tags_url":"https://api.github.com/repos/HubSpot/Singularity/tags","blobs_url":"https://api.github.com/repos/HubSpot/Singularity/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/HubSpot/Singularity/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/HubSpot/Singularity/git/refs{/sha}","trees_url":"https://api.github.com/repos/HubSpot/Singularity/git/trees{/sha}","statuses_url":"https://api.github.com/repos/HubSpot/Singularity/statuses/{sha}","languages_url":"https://api.github.com/repos/HubSpot/Singularity/languages","stargazers_url":"https://api.github.com/repos/HubSpot/Singularity/stargazers","contributors_url":"https://api.github.com/repos/HubSpot/Singularity/contributors","subscribers_url":"https://api.github.com/repos/HubSpot/Singularity/subscribers","subscription_url":"https://api.github.com/repos/HubSpot/Singularity/subscription","commits_url":"https://api.github.com/repos/HubSpot/Singularity/commits{/sha}","git_commits_url":"https://api.github.com/repos/HubSpot/Singularity/git/commits{/sha}","comments_url":"https://api.github.com/repos/HubSpot/Singularity/comments{/number}","issue_comment_url":"https://api.github.com/repos/HubSpot/Singularity/issues/comments{/number}","contents_url":"https://api.github.com/repos/HubSpot/Singularity/contents/{+path}","compare_url":"https://api.github.com/repos/HubSpot/Singularity/compare/{base}...{head}","merges_url":"https://api.github.com/repos/HubSpot/Singularity/merges","archive_url":"https://api.github.com/repos/HubSpot/Singularity/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/HubSpot/Singularity/downloads","issues_url":"https://api.github.com/repos/HubSpot/Singularity/issues{/number}","pulls_url":"https://api.github.com/repos/HubSpot/Singularity/pulls{/number}","milestones_url":"https://api.github.com/repos/HubSpot/Singularity/milestones{/number}","notifications_url":"https://api.github.com/repos/HubSpot/Singularity/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/HubSpot/Singularity/labels{/name}","releases_url":"https://api.github.com/repos/HubSpot/Singularity/releases{/id}","created_at":"2013-10-16T21:28:49Z","updated_at":"2015-03-08T13:44:45Z","pushed_at":"2015-03-11T15:00:31Z","git_url":"git://github.com/HubSpot/Singularity.git","ssh_url":"git@github.com:HubSpot/Singularity.git","clone_url":"https://github.com/HubSpot/Singularity.git","svn_url":"https://github.com/HubSpot/Singularity","homepage":"https://github.com/HubSpot/Singularity","size":23545,"stargazers_count":256,"watchers_count":256,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":39,"mirror_url":null,"open_issues_count":52,"forks":39,"open_issues":52,"watchers":256,"default_branch":"master"}},"base":{"label":"HubSpot:hs_staging","ref":"hs_staging","sha":"087048882945fead9bad8e39bfade84067daadac","user":{"login":"HubSpot","id":326419,"avatar_url":"https://avatars.githubusercontent.com/u/326419?v=3","gravatar_id":"","url":"https://api.github.com/users/HubSpot","html_url":"https://github.com/HubSpot","followers_url":"https://api.github.com/users/HubSpot/followers","following_url":"https://api.github.com/users/HubSpot/following{/other_user}","gists_url":"https://api.github.com/users/HubSpot/gists{/gist_id}","starred_url":"https://api.github.com/users/HubSpot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HubSpot/subscriptions","organizations_url":"https://api.github.com/users/HubSpot/orgs","repos_url":"https://api.github.com/users/HubSpot/repos","events_url":"https://api.github.com/users/HubSpot/events{/privacy}","received_events_url":"https://api.github.com/users/HubSpot/received_events","type":"Organization","site_admin":false},"repo":{"id":13631804,"name":"Singularity","full_name":"HubSpot/Singularity","owner":{"login":"HubSpot","id":326419,"avatar_url":"https://avatars.githubusercontent.com/u/326419?v=3","gravatar_id":"","url":"https://api.github.com/users/HubSpot","html_url":"https://github.com/HubSpot","followers_url":"https://api.github.com/users/HubSpot/followers","following_url":"https://api.github.com/users/HubSpot/following{/other_user}","gists_url":"https://api.github.com/users/HubSpot/gists{/gist_id}","starred_url":"https://api.github.com/users/HubSpot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HubSpot/subscriptions","organizations_url":"https://api.github.com/users/HubSpot/orgs","repos_url":"https://api.github.com/users/HubSpot/repos","events_url":"https://api.github.com/users/HubSpot/events{/privacy}","received_events_url":"https://api.github.com/users/HubSpot/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/HubSpot/Singularity","description":"Scheduler (HTTP API and webapp) for running mesos tasks—long running processes, one-off tasks, and scheduled jobs. #hubspot-open-source","fork":false,"url":"https://api.github.com/repos/HubSpot/Singularity","forks_url":"https://api.github.com/repos/HubSpot/Singularity/forks","keys_url":"https://api.github.com/repos/HubSpot/Singularity/keys{/key_id}","collaborators_url":"https://api.github.com/repos/HubSpot/Singularity/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/HubSpot/Singularity/teams","hooks_url":"https://api.github.com/repos/HubSpot/Singularity/hooks","issue_events_url":"https://api.github.com/repos/HubSpot/Singularity/issues/events{/number}","events_url":"https://api.github.com/repos/HubSpot/Singularity/events","assignees_url":"https://api.github.com/repos/HubSpot/Singularity/assignees{/user}","branches_url":"https://api.github.com/repos/HubSpot/Singularity/branches{/branch}","tags_url":"https://api.github.com/repos/HubSpot/Singularity/tags","blobs_url":"https://api.github.com/repos/HubSpot/Singularity/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/HubSpot/Singularity/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/HubSpot/Singularity/git/refs{/sha}","trees_url":"https://api.github.com/repos/HubSpot/Singularity/git/trees{/sha}","statuses_url":"https://api.github.com/repos/HubSpot/Singularity/statuses/{sha}","languages_url":"https://api.github.com/repos/HubSpot/Singularity/languages","stargazers_url":"https://api.github.com/repos/HubSpot/Singularity/stargazers","contributors_url":"https://api.github.com/repos/HubSpot/Singularity/contributors","subscribers_url":"https://api.github.com/repos/HubSpot/Singularity/subscribers","subscription_url":"https://api.github.com/repos/HubSpot/Singularity/subscription","commits_url":"https://api.github.com/repos/HubSpot/Singularity/commits{/sha}","git_commits_url":"https://api.github.com/repos/HubSpot/Singularity/git/commits{/sha}","comments_url":"https://api.github.com/repos/HubSpot/Singularity/comments{/number}","issue_comment_url":"https://api.github.com/repos/HubSpot/Singularity/issues/comments{/number}","contents_url":"https://api.github.com/repos/HubSpot/Singularity/contents/{+path}","compare_url":"https://api.github.com/repos/HubSpot/Singularity/compare/{base}...{head}","merges_url":"https://api.github.com/repos/HubSpot/Singularity/merges","archive_url":"https://api.github.com/repos/HubSpot/Singularity/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/HubSpot/Singularity/downloads","issues_url":"https://api.github.com/repos/HubSpot/Singularity/issues{/number}","pulls_url":"https://api.github.com/repos/HubSpot/Singularity/pulls{/number}","milestones_url":"https://api.github.com/repos/HubSpot/Singularity/milestones{/number}","notifications_url":"https://api.github.com/repos/HubSpot/Singularity/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/HubSpot/Singularity/labels{/name}","releases_url":"https://api.github.com/repos/HubSpot/Singularity/releases{/id}","created_at":"2013-10-16T21:28:49Z","updated_at":"2015-03-08T13:44:45Z","pushed_at":"2015-03-11T15:00:31Z","git_url":"git://github.com/HubSpot/Singularity.git","ssh_url":"git@github.com:HubSpot/Singularity.git","clone_url":"https://github.com/HubSpot/Singularity.git","svn_url":"https://github.com/HubSpot/Singularity","homepage":"https://github.com/HubSpot/Singularity","size":23545,"stargazers_count":256,"watchers_count":256,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":39,"mirror_url":null,"open_issues_count":52,"forks":39,"open_issues":52,"watchers":256,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/HubSpot/Singularity/pulls/477"},"html":{"href":"https://github.com/HubSpot/Singularity/pull/477"},"issue":{"href":"https://api.github.com/repos/HubSpot/Singularity/issues/477"},"comments":{"href":"https://api.github.com/repos/HubSpot/Singularity/issues/477/comments"},"review_comments":{"href":"https://api.github.com/repos/HubSpot/Singularity/pulls/477/comments"},"review_comment":{"href":"https://api.github.com/repos/HubSpot/Singularity/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/HubSpot/Singularity/pulls/477/commits"},"statuses":{"href":"https://api.github.com/repos/HubSpot/Singularity/statuses/a808829defe3542895bc269b06ff5ae20d6ea262"}}}}