{"action":"created","comment":{"url":"https://api.github.com/repos/spring-cloud/spring-cloud-task/pulls/comments/82864608","pull_request_review_id":3741641,"id":82864608,"diff_hunk":"@@ -187,9 +198,18 @@ private void doTaskStart() {\n \t\t\tif(this.applicationArguments != null) {\n \t\t\t\targs = Arrays.asList(this.applicationArguments.getSourceArgs());\n \t\t\t}\n-\n-\t\t\tthis.taskExecution = this.taskRepository.createTaskExecution(\n-\t\t\t\t\tthis.taskNameResolver.getTaskName(), new Date(), args);\n+\t\t\tif(this.taskExecutionId != null) {\n+\t\t\t\tTaskExecution taskExecution = taskExplorer.getTaskExecution(this.taskExecutionId);\n+\t\t\t\tAssert.notNull(taskExecution, String.format(\"Invalid TaskExecution, ID %s not found\", this.taskExecutionId));\n+\t\t\t\tAssert.isNull(taskExecution.getEndTime(), String.format(\n+\t\t\t\t\t\t\"Invalid TaskExecution, ID %s task is already complete\", this.taskExecutionId));\n+\t\t\t\tthis.taskExecution = this.taskRepository.startTaskExecution(this.taskExecutionId,\n+\t\t\t\t\t\tthis.taskNameResolver.getTaskName(), new Date(), args, externalExecutionId);\n+\t\t\t}\n+\t\t\telse {\n+\t\t\t\tthis.taskExecution = this.taskRepository.createTaskExecution(","path":"spring-cloud-task-core/src/main/java/org/springframework/cloud/task/listener/TaskLifecycleListener.java","position":61,"original_position":61,"commit_id":"553c02575efcd5b9e7f5703bb82c3501d9490650","original_commit_id":"553c02575efcd5b9e7f5703bb82c3501d9490650","user":{"login":"cppwfs","id":695673,"avatar_url":"https://avatars.githubusercontent.com/u/695673?v=3","gravatar_id":"","url":"https://api.github.com/users/cppwfs","html_url":"https://github.com/cppwfs","followers_url":"https://api.github.com/users/cppwfs/followers","following_url":"https://api.github.com/users/cppwfs/following{/other_user}","gists_url":"https://api.github.com/users/cppwfs/gists{/gist_id}","starred_url":"https://api.github.com/users/cppwfs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cppwfs/subscriptions","organizations_url":"https://api.github.com/users/cppwfs/orgs","repos_url":"https://api.github.com/users/cppwfs/repos","events_url":"https://api.github.com/users/cppwfs/events{/privacy}","received_events_url":"https://api.github.com/users/cppwfs/received_events","type":"User","site_admin":false},"body":"Agreed\r\nhttps://github.com/spring-cloud/spring-cloud-task/issues/223","created_at":"2016-10-11T18:58:09Z","updated_at":"2016-10-11T18:58:09Z","html_url":"https://github.com/spring-cloud/spring-cloud-task/pull/220#discussion_r82864608","pull_request_url":"https://api.github.com/repos/spring-cloud/spring-cloud-task/pulls/220","_links":{"self":{"href":"https://api.github.com/repos/spring-cloud/spring-cloud-task/pulls/comments/82864608"},"html":{"href":"https://github.com/spring-cloud/spring-cloud-task/pull/220#discussion_r82864608"},"pull_request":{"href":"https://api.github.com/repos/spring-cloud/spring-cloud-task/pulls/220"}}},"pull_request":{"url":"https://api.github.com/repos/spring-cloud/spring-cloud-task/pulls/220","id":88142835,"html_url":"https://github.com/spring-cloud/spring-cloud-task/pull/220","diff_url":"https://github.com/spring-cloud/spring-cloud-task/pull/220.diff","patch_url":"https://github.com/spring-cloud/spring-cloud-task/pull/220.patch","issue_url":"https://api.github.com/repos/spring-cloud/spring-cloud-task/issues/220","number":220,"state":"open","locked":false,"title":"Adds support for externalExecutionId","user":{"login":"cppwfs","id":695673,"avatar_url":"https://avatars.githubusercontent.com/u/695673?v=3","gravatar_id":"","url":"https://api.github.com/users/cppwfs","html_url":"https://github.com/cppwfs","followers_url":"https://api.github.com/users/cppwfs/followers","following_url":"https://api.github.com/users/cppwfs/following{/other_user}","gists_url":"https://api.github.com/users/cppwfs/gists{/gist_id}","starred_url":"https://api.github.com/users/cppwfs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cppwfs/subscriptions","organizations_url":"https://api.github.com/users/cppwfs/orgs","repos_url":"https://api.github.com/users/cppwfs/repos","events_url":"https://api.github.com/users/cppwfs/events{/privacy}","received_events_url":"https://api.github.com/users/cppwfs/received_events","type":"User","site_admin":false},"body":"resolves #80","created_at":"2016-10-05T19:40:17Z","updated_at":"2016-10-11T18:58:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2e6c802d9fa554d76850056c8126db7495d97059","assignee":{"login":"mminella","id":630743,"avatar_url":"https://avatars.githubusercontent.com/u/630743?v=3","gravatar_id":"","url":"https://api.github.com/users/mminella","html_url":"https://github.com/mminella","followers_url":"https://api.github.com/users/mminella/followers","following_url":"https://api.github.com/users/mminella/following{/other_user}","gists_url":"https://api.github.com/users/mminella/gists{/gist_id}","starred_url":"https://api.github.com/users/mminella/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mminella/subscriptions","organizations_url":"https://api.github.com/users/mminella/orgs","repos_url":"https://api.github.com/users/mminella/repos","events_url":"https://api.github.com/users/mminella/events{/privacy}","received_events_url":"https://api.github.com/users/mminella/received_events","type":"User","site_admin":false},"assignees":[{"login":"mminella","id":630743,"avatar_url":"https://avatars.githubusercontent.com/u/630743?v=3","gravatar_id":"","url":"https://api.github.com/users/mminella","html_url":"https://github.com/mminella","followers_url":"https://api.github.com/users/mminella/followers","following_url":"https://api.github.com/users/mminella/following{/other_user}","gists_url":"https://api.github.com/users/mminella/gists{/gist_id}","starred_url":"https://api.github.com/users/mminella/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mminella/subscriptions","organizations_url":"https://api.github.com/users/mminella/orgs","repos_url":"https://api.github.com/users/mminella/repos","events_url":"https://api.github.com/users/mminella/events{/privacy}","received_events_url":"https://api.github.com/users/mminella/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/spring-cloud/spring-cloud-task/pulls/220/commits","review_comments_url":"https://api.github.com/repos/spring-cloud/spring-cloud-task/pulls/220/comments","review_comment_url":"https://api.github.com/repos/spring-cloud/spring-cloud-task/pulls/comments{/number}","comments_url":"https://api.github.com/repos/spring-cloud/spring-cloud-task/issues/220/comments","statuses_url":"https://api.github.com/repos/spring-cloud/spring-cloud-task/statuses/553c02575efcd5b9e7f5703bb82c3501d9490650","head":{"label":"cppwfs:SCT-80","ref":"SCT-80","sha":"553c02575efcd5b9e7f5703bb82c3501d9490650","user":{"login":"cppwfs","id":695673,"avatar_url":"https://avatars.githubusercontent.com/u/695673?v=3","gravatar_id":"","url":"https://api.github.com/users/cppwfs","html_url":"https://github.com/cppwfs","followers_url":"https://api.github.com/users/cppwfs/followers","following_url":"https://api.github.com/users/cppwfs/following{/other_user}","gists_url":"https://api.github.com/users/cppwfs/gists{/gist_id}","starred_url":"https://api.github.com/users/cppwfs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cppwfs/subscriptions","organizations_url":"https://api.github.com/users/cppwfs/orgs","repos_url":"https://api.github.com/users/cppwfs/repos","events_url":"https://api.github.com/users/cppwfs/events{/privacy}","received_events_url":"https://api.github.com/users/cppwfs/received_events","type":"User","site_admin":false},"repo":{"id":61756230,"name":"spring-cloud-task","full_name":"cppwfs/spring-cloud-task","owner":{"login":"cppwfs","id":695673,"avatar_url":"https://avatars.githubusercontent.com/u/695673?v=3","gravatar_id":"","url":"https://api.github.com/users/cppwfs","html_url":"https://github.com/cppwfs","followers_url":"https://api.github.com/users/cppwfs/followers","following_url":"https://api.github.com/users/cppwfs/following{/other_user}","gists_url":"https://api.github.com/users/cppwfs/gists{/gist_id}","starred_url":"https://api.github.com/users/cppwfs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cppwfs/subscriptions","organizations_url":"https://api.github.com/users/cppwfs/orgs","repos_url":"https://api.github.com/users/cppwfs/repos","events_url":"https://api.github.com/users/cppwfs/events{/privacy}","received_events_url":"https://api.github.com/users/cppwfs/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cppwfs/spring-cloud-task","description":"Short lived microservices","fork":true,"url":"https://api.github.com/repos/cppwfs/spring-cloud-task","forks_url":"https://api.github.com/repos/cppwfs/spring-cloud-task/forks","keys_url":"https://api.github.com/repos/cppwfs/spring-cloud-task/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cppwfs/spring-cloud-task/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cppwfs/spring-cloud-task/teams","hooks_url":"https://api.github.com/repos/cppwfs/spring-cloud-task/hooks","issue_events_url":"https://api.github.com/repos/cppwfs/spring-cloud-task/issues/events{/number}","events_url":"https://api.github.com/repos/cppwfs/spring-cloud-task/events","assignees_url":"https://api.github.com/repos/cppwfs/spring-cloud-task/assignees{/user}","branches_url":"https://api.github.com/repos/cppwfs/spring-cloud-task/branches{/branch}","tags_url":"https://api.github.com/repos/cppwfs/spring-cloud-task/tags","blobs_url":"https://api.github.com/repos/cppwfs/spring-cloud-task/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cppwfs/spring-cloud-task/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cppwfs/spring-cloud-task/git/refs{/sha}","trees_url":"https://api.github.com/repos/cppwfs/spring-cloud-task/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cppwfs/spring-cloud-task/statuses/{sha}","languages_url":"https://api.github.com/repos/cppwfs/spring-cloud-task/languages","stargazers_url":"https://api.github.com/repos/cppwfs/spring-cloud-task/stargazers","contributors_url":"https://api.github.com/repos/cppwfs/spring-cloud-task/contributors","subscribers_url":"https://api.github.com/repos/cppwfs/spring-cloud-task/subscribers","subscription_url":"https://api.github.com/repos/cppwfs/spring-cloud-task/subscription","commits_url":"https://api.github.com/repos/cppwfs/spring-cloud-task/commits{/sha}","git_commits_url":"https://api.github.com/repos/cppwfs/spring-cloud-task/git/commits{/sha}","comments_url":"https://api.github.com/repos/cppwfs/spring-cloud-task/comments{/number}","issue_comment_url":"https://api.github.com/repos/cppwfs/spring-cloud-task/issues/comments{/number}","contents_url":"https://api.github.com/repos/cppwfs/spring-cloud-task/contents/{+path}","compare_url":"https://api.github.com/repos/cppwfs/spring-cloud-task/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cppwfs/spring-cloud-task/merges","archive_url":"https://api.github.com/repos/cppwfs/spring-cloud-task/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cppwfs/spring-cloud-task/downloads","issues_url":"https://api.github.com/repos/cppwfs/spring-cloud-task/issues{/number}","pulls_url":"https://api.github.com/repos/cppwfs/spring-cloud-task/pulls{/number}","milestones_url":"https://api.github.com/repos/cppwfs/spring-cloud-task/milestones{/number}","notifications_url":"https://api.github.com/repos/cppwfs/spring-cloud-task/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cppwfs/spring-cloud-task/labels{/name}","releases_url":"https://api.github.com/repos/cppwfs/spring-cloud-task/releases{/id}","deployments_url":"https://api.github.com/repos/cppwfs/spring-cloud-task/deployments","created_at":"2016-06-22T22:41:55Z","updated_at":"2016-07-13T13:00:21Z","pushed_at":"2016-10-06T17:15:13Z","git_url":"git://github.com/cppwfs/spring-cloud-task.git","ssh_url":"git@github.com:cppwfs/spring-cloud-task.git","clone_url":"https://github.com/cppwfs/spring-cloud-task.git","svn_url":"https://github.com/cppwfs/spring-cloud-task","homepage":"http://cloud.spring.io/spring-cloud-task/","size":1646,"stargazers_count":1,"watchers_count":1,"language":"Java","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":1,"default_branch":"master"}},"base":{"label":"spring-cloud:master","ref":"master","sha":"bf0c27dd1a187bcd128241e366140cc1b84fdf74","user":{"login":"spring-cloud","id":7815877,"avatar_url":"https://avatars.githubusercontent.com/u/7815877?v=3","gravatar_id":"","url":"https://api.github.com/users/spring-cloud","html_url":"https://github.com/spring-cloud","followers_url":"https://api.github.com/users/spring-cloud/followers","following_url":"https://api.github.com/users/spring-cloud/following{/other_user}","gists_url":"https://api.github.com/users/spring-cloud/gists{/gist_id}","starred_url":"https://api.github.com/users/spring-cloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spring-cloud/subscriptions","organizations_url":"https://api.github.com/users/spring-cloud/orgs","repos_url":"https://api.github.com/users/spring-cloud/repos","events_url":"https://api.github.com/users/spring-cloud/events{/privacy}","received_events_url":"https://api.github.com/users/spring-cloud/received_events","type":"Organization","site_admin":false},"repo":{"id":41825227,"name":"spring-cloud-task","full_name":"spring-cloud/spring-cloud-task","owner":{"login":"spring-cloud","id":7815877,"avatar_url":"https://avatars.githubusercontent.com/u/7815877?v=3","gravatar_id":"","url":"https://api.github.com/users/spring-cloud","html_url":"https://github.com/spring-cloud","followers_url":"https://api.github.com/users/spring-cloud/followers","following_url":"https://api.github.com/users/spring-cloud/following{/other_user}","gists_url":"https://api.github.com/users/spring-cloud/gists{/gist_id}","starred_url":"https://api.github.com/users/spring-cloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spring-cloud/subscriptions","organizations_url":"https://api.github.com/users/spring-cloud/orgs","repos_url":"https://api.github.com/users/spring-cloud/repos","events_url":"https://api.github.com/users/spring-cloud/events{/privacy}","received_events_url":"https://api.github.com/users/spring-cloud/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/spring-cloud/spring-cloud-task","description":"Short lived microservices","fork":false,"url":"https://api.github.com/repos/spring-cloud/spring-cloud-task","forks_url":"https://api.github.com/repos/spring-cloud/spring-cloud-task/forks","keys_url":"https://api.github.com/repos/spring-cloud/spring-cloud-task/keys{/key_id}","collaborators_url":"https://api.github.com/repos/spring-cloud/spring-cloud-task/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/spring-cloud/spring-cloud-task/teams","hooks_url":"https://api.github.com/repos/spring-cloud/spring-cloud-task/hooks","issue_events_url":"https://api.github.com/repos/spring-cloud/spring-cloud-task/issues/events{/number}","events_url":"https://api.github.com/repos/spring-cloud/spring-cloud-task/events","assignees_url":"https://api.github.com/repos/spring-cloud/spring-cloud-task/assignees{/user}","branches_url":"https://api.github.com/repos/spring-cloud/spring-cloud-task/branches{/branch}","tags_url":"https://api.github.com/repos/spring-cloud/spring-cloud-task/tags","blobs_url":"https://api.github.com/repos/spring-cloud/spring-cloud-task/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/spring-cloud/spring-cloud-task/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/spring-cloud/spring-cloud-task/git/refs{/sha}","trees_url":"https://api.github.com/repos/spring-cloud/spring-cloud-task/git/trees{/sha}","statuses_url":"https://api.github.com/repos/spring-cloud/spring-cloud-task/statuses/{sha}","languages_url":"https://api.github.com/repos/spring-cloud/spring-cloud-task/languages","stargazers_url":"https://api.github.com/repos/spring-cloud/spring-cloud-task/stargazers","contributors_url":"https://api.github.com/repos/spring-cloud/spring-cloud-task/contributors","subscribers_url":"https://api.github.com/repos/spring-cloud/spring-cloud-task/subscribers","subscription_url":"https://api.github.com/repos/spring-cloud/spring-cloud-task/subscription","commits_url":"https://api.github.com/repos/spring-cloud/spring-cloud-task/commits{/sha}","git_commits_url":"https://api.github.com/repos/spring-cloud/spring-cloud-task/git/commits{/sha}","comments_url":"https://api.github.com/repos/spring-cloud/spring-cloud-task/comments{/number}","issue_comment_url":"https://api.github.com/repos/spring-cloud/spring-cloud-task/issues/comments{/number}","contents_url":"https://api.github.com/repos/spring-cloud/spring-cloud-task/contents/{+path}","compare_url":"https://api.github.com/repos/spring-cloud/spring-cloud-task/compare/{base}...{head}","merges_url":"https://api.github.com/repos/spring-cloud/spring-cloud-task/merges","archive_url":"https://api.github.com/repos/spring-cloud/spring-cloud-task/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/spring-cloud/spring-cloud-task/downloads","issues_url":"https://api.github.com/repos/spring-cloud/spring-cloud-task/issues{/number}","pulls_url":"https://api.github.com/repos/spring-cloud/spring-cloud-task/pulls{/number}","milestones_url":"https://api.github.com/repos/spring-cloud/spring-cloud-task/milestones{/number}","notifications_url":"https://api.github.com/repos/spring-cloud/spring-cloud-task/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/spring-cloud/spring-cloud-task/labels{/name}","releases_url":"https://api.github.com/repos/spring-cloud/spring-cloud-task/releases{/id}","deployments_url":"https://api.github.com/repos/spring-cloud/spring-cloud-task/deployments","created_at":"2015-09-02T20:12:00Z","updated_at":"2016-10-01T01:08:58Z","pushed_at":"2016-10-11T17:27:52Z","git_url":"git://github.com/spring-cloud/spring-cloud-task.git","ssh_url":"git@github.com:spring-cloud/spring-cloud-task.git","clone_url":"https://github.com/spring-cloud/spring-cloud-task.git","svn_url":"https://github.com/spring-cloud/spring-cloud-task","homepage":"http://cloud.spring.io/spring-cloud-task/","size":1938,"stargazers_count":30,"watchers_count":30,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":32,"mirror_url":null,"open_issues_count":12,"forks":32,"open_issues":12,"watchers":30,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/spring-cloud/spring-cloud-task/pulls/220"},"html":{"href":"https://github.com/spring-cloud/spring-cloud-task/pull/220"},"issue":{"href":"https://api.github.com/repos/spring-cloud/spring-cloud-task/issues/220"},"comments":{"href":"https://api.github.com/repos/spring-cloud/spring-cloud-task/issues/220/comments"},"review_comments":{"href":"https://api.github.com/repos/spring-cloud/spring-cloud-task/pulls/220/comments"},"review_comment":{"href":"https://api.github.com/repos/spring-cloud/spring-cloud-task/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/spring-cloud/spring-cloud-task/pulls/220/commits"},"statuses":{"href":"https://api.github.com/repos/spring-cloud/spring-cloud-task/statuses/553c02575efcd5b9e7f5703bb82c3501d9490650"}}}}
{"actor":{"display_login":"cppwfs"}}