{"action":"created","comment":{"url":"https://api.github.com/repos/broadinstitute/cromwell/pulls/comments/62391900","id":62391900,"diff_hunk":"@@ -106,6 +110,15 @@ final case class WorkflowExecutionActor(workflowId: WorkflowId, workflowDescript\n \n   private val calls = workflowDescriptor.backendDescriptor.workflowNamespace.workflow.calls\n \n+  // TODO: We should probably create a trait which loads all the configuration (once per application), and let classes mix it in\n+  // to avoid doing ConfigFactory.load() at multiple places\n+  val MaxRetries = Try(ConfigFactory.load().getInt(\"system.max-retries\")) match {\n+    case Success(value) => value\n+    case Failure(reason) =>\n+      log.warning(s\"Failed to load the max-retries value from the configuration. Defaulting back to a value of `10` : ${reason.getMessage}\")\n+      10","path":"engine/src/main/scala/cromwell/engine/workflow/lifecycle/WorkflowExecutionActor.scala","position":53,"original_position":53,"commit_id":"e10a82aed66c1bef8d9b1521759eb520faad6142","original_commit_id":"e10a82aed66c1bef8d9b1521759eb520faad6142","user":{"login":"gauravs90","id":13227423,"avatar_url":"https://avatars.githubusercontent.com/u/13227423?v=3","gravatar_id":"","url":"https://api.github.com/users/gauravs90","html_url":"https://github.com/gauravs90","followers_url":"https://api.github.com/users/gauravs90/followers","following_url":"https://api.github.com/users/gauravs90/following{/other_user}","gists_url":"https://api.github.com/users/gauravs90/gists{/gist_id}","starred_url":"https://api.github.com/users/gauravs90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gauravs90/subscriptions","organizations_url":"https://api.github.com/users/gauravs90/orgs","repos_url":"https://api.github.com/users/gauravs90/repos","events_url":"https://api.github.com/users/gauravs90/events{/privacy}","received_events_url":"https://api.github.com/users/gauravs90/received_events","type":"User","site_admin":false},"body":"@mcovarr I was kidding mostly there 😕 \r\nI have used something like that currently now.","created_at":"2016-05-06T21:14:07Z","updated_at":"2016-05-06T21:14:07Z","html_url":"https://github.com/broadinstitute/cromwell/pull/795#discussion_r62391900","pull_request_url":"https://api.github.com/repos/broadinstitute/cromwell/pulls/795","_links":{"self":{"href":"https://api.github.com/repos/broadinstitute/cromwell/pulls/comments/62391900"},"html":{"href":"https://github.com/broadinstitute/cromwell/pull/795#discussion_r62391900"},"pull_request":{"href":"https://api.github.com/repos/broadinstitute/cromwell/pulls/795"}}},"pull_request":{"url":"https://api.github.com/repos/broadinstitute/cromwell/pulls/795","id":69114677,"html_url":"https://github.com/broadinstitute/cromwell/pull/795","diff_url":"https://github.com/broadinstitute/cromwell/pull/795.diff","patch_url":"https://github.com/broadinstitute/cromwell/pull/795.patch","issue_url":"https://api.github.com/repos/broadinstitute/cromwell/issues/795","number":795,"state":"open","locked":false,"title":"Add retry support in WorkflowExecutionActor. Closes #655.","user":{"login":"gauravs90","id":13227423,"avatar_url":"https://avatars.githubusercontent.com/u/13227423?v=3","gravatar_id":"","url":"https://api.github.com/users/gauravs90","html_url":"https://github.com/gauravs90","followers_url":"https://api.github.com/users/gauravs90/followers","following_url":"https://api.github.com/users/gauravs90/following{/other_user}","gists_url":"https://api.github.com/users/gauravs90/gists{/gist_id}","starred_url":"https://api.github.com/users/gauravs90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gauravs90/subscriptions","organizations_url":"https://api.github.com/users/gauravs90/orgs","repos_url":"https://api.github.com/users/gauravs90/repos","events_url":"https://api.github.com/users/gauravs90/events{/privacy}","received_events_url":"https://api.github.com/users/gauravs90/received_events","type":"User","site_admin":false},"body":"Adds an event handler for a backend job that failed with a retry able failure. The engine attempts to restart the failed job again on the same backend for a `max` number of times (where that number is configurable and controlled by the engine)","created_at":"2016-05-06T07:30:18Z","updated_at":"2016-05-06T21:14:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6ea348a4e2253a70f1ac8c8848aef2e7cb5535ed","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/broadinstitute/cromwell/pulls/795/commits","review_comments_url":"https://api.github.com/repos/broadinstitute/cromwell/pulls/795/comments","review_comment_url":"https://api.github.com/repos/broadinstitute/cromwell/pulls/comments{/number}","comments_url":"https://api.github.com/repos/broadinstitute/cromwell/issues/795/comments","statuses_url":"https://api.github.com/repos/broadinstitute/cromwell/statuses/e10a82aed66c1bef8d9b1521759eb520faad6142","head":{"label":"broadinstitute:retryable-in-shadow#655","ref":"retryable-in-shadow#655","sha":"e10a82aed66c1bef8d9b1521759eb520faad6142","user":{"login":"broadinstitute","id":393552,"avatar_url":"https://avatars.githubusercontent.com/u/393552?v=3","gravatar_id":"","url":"https://api.github.com/users/broadinstitute","html_url":"https://github.com/broadinstitute","followers_url":"https://api.github.com/users/broadinstitute/followers","following_url":"https://api.github.com/users/broadinstitute/following{/other_user}","gists_url":"https://api.github.com/users/broadinstitute/gists{/gist_id}","starred_url":"https://api.github.com/users/broadinstitute/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/broadinstitute/subscriptions","organizations_url":"https://api.github.com/users/broadinstitute/orgs","repos_url":"https://api.github.com/users/broadinstitute/repos","events_url":"https://api.github.com/users/broadinstitute/events{/privacy}","received_events_url":"https://api.github.com/users/broadinstitute/received_events","type":"Organization","site_admin":false},"repo":{"id":34136406,"name":"cromwell","full_name":"broadinstitute/cromwell","owner":{"login":"broadinstitute","id":393552,"avatar_url":"https://avatars.githubusercontent.com/u/393552?v=3","gravatar_id":"","url":"https://api.github.com/users/broadinstitute","html_url":"https://github.com/broadinstitute","followers_url":"https://api.github.com/users/broadinstitute/followers","following_url":"https://api.github.com/users/broadinstitute/following{/other_user}","gists_url":"https://api.github.com/users/broadinstitute/gists{/gist_id}","starred_url":"https://api.github.com/users/broadinstitute/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/broadinstitute/subscriptions","organizations_url":"https://api.github.com/users/broadinstitute/orgs","repos_url":"https://api.github.com/users/broadinstitute/repos","events_url":"https://api.github.com/users/broadinstitute/events{/privacy}","received_events_url":"https://api.github.com/users/broadinstitute/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/broadinstitute/cromwell","description":"Workflow Execution Engine using WDL","fork":false,"url":"https://api.github.com/repos/broadinstitute/cromwell","forks_url":"https://api.github.com/repos/broadinstitute/cromwell/forks","keys_url":"https://api.github.com/repos/broadinstitute/cromwell/keys{/key_id}","collaborators_url":"https://api.github.com/repos/broadinstitute/cromwell/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/broadinstitute/cromwell/teams","hooks_url":"https://api.github.com/repos/broadinstitute/cromwell/hooks","issue_events_url":"https://api.github.com/repos/broadinstitute/cromwell/issues/events{/number}","events_url":"https://api.github.com/repos/broadinstitute/cromwell/events","assignees_url":"https://api.github.com/repos/broadinstitute/cromwell/assignees{/user}","branches_url":"https://api.github.com/repos/broadinstitute/cromwell/branches{/branch}","tags_url":"https://api.github.com/repos/broadinstitute/cromwell/tags","blobs_url":"https://api.github.com/repos/broadinstitute/cromwell/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/broadinstitute/cromwell/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/broadinstitute/cromwell/git/refs{/sha}","trees_url":"https://api.github.com/repos/broadinstitute/cromwell/git/trees{/sha}","statuses_url":"https://api.github.com/repos/broadinstitute/cromwell/statuses/{sha}","languages_url":"https://api.github.com/repos/broadinstitute/cromwell/languages","stargazers_url":"https://api.github.com/repos/broadinstitute/cromwell/stargazers","contributors_url":"https://api.github.com/repos/broadinstitute/cromwell/contributors","subscribers_url":"https://api.github.com/repos/broadinstitute/cromwell/subscribers","subscription_url":"https://api.github.com/repos/broadinstitute/cromwell/subscription","commits_url":"https://api.github.com/repos/broadinstitute/cromwell/commits{/sha}","git_commits_url":"https://api.github.com/repos/broadinstitute/cromwell/git/commits{/sha}","comments_url":"https://api.github.com/repos/broadinstitute/cromwell/comments{/number}","issue_comment_url":"https://api.github.com/repos/broadinstitute/cromwell/issues/comments{/number}","contents_url":"https://api.github.com/repos/broadinstitute/cromwell/contents/{+path}","compare_url":"https://api.github.com/repos/broadinstitute/cromwell/compare/{base}...{head}","merges_url":"https://api.github.com/repos/broadinstitute/cromwell/merges","archive_url":"https://api.github.com/repos/broadinstitute/cromwell/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/broadinstitute/cromwell/downloads","issues_url":"https://api.github.com/repos/broadinstitute/cromwell/issues{/number}","pulls_url":"https://api.github.com/repos/broadinstitute/cromwell/pulls{/number}","milestones_url":"https://api.github.com/repos/broadinstitute/cromwell/milestones{/number}","notifications_url":"https://api.github.com/repos/broadinstitute/cromwell/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/broadinstitute/cromwell/labels{/name}","releases_url":"https://api.github.com/repos/broadinstitute/cromwell/releases{/id}","deployments_url":"https://api.github.com/repos/broadinstitute/cromwell/deployments","created_at":"2015-04-17T19:39:36Z","updated_at":"2016-05-03T12:43:19Z","pushed_at":"2016-05-06T20:54:18Z","git_url":"git://github.com/broadinstitute/cromwell.git","ssh_url":"git@github.com:broadinstitute/cromwell.git","clone_url":"https://github.com/broadinstitute/cromwell.git","svn_url":"https://github.com/broadinstitute/cromwell","homepage":"","size":6836,"stargazers_count":60,"watchers_count":60,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":13,"mirror_url":null,"open_issues_count":103,"forks":13,"open_issues":103,"watchers":60,"default_branch":"0.19_hotfix"}},"base":{"label":"broadinstitute:develop","ref":"develop","sha":"1973596b5884dad8301c02ae9325997870454dc0","user":{"login":"broadinstitute","id":393552,"avatar_url":"https://avatars.githubusercontent.com/u/393552?v=3","gravatar_id":"","url":"https://api.github.com/users/broadinstitute","html_url":"https://github.com/broadinstitute","followers_url":"https://api.github.com/users/broadinstitute/followers","following_url":"https://api.github.com/users/broadinstitute/following{/other_user}","gists_url":"https://api.github.com/users/broadinstitute/gists{/gist_id}","starred_url":"https://api.github.com/users/broadinstitute/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/broadinstitute/subscriptions","organizations_url":"https://api.github.com/users/broadinstitute/orgs","repos_url":"https://api.github.com/users/broadinstitute/repos","events_url":"https://api.github.com/users/broadinstitute/events{/privacy}","received_events_url":"https://api.github.com/users/broadinstitute/received_events","type":"Organization","site_admin":false},"repo":{"id":34136406,"name":"cromwell","full_name":"broadinstitute/cromwell","owner":{"login":"broadinstitute","id":393552,"avatar_url":"https://avatars.githubusercontent.com/u/393552?v=3","gravatar_id":"","url":"https://api.github.com/users/broadinstitute","html_url":"https://github.com/broadinstitute","followers_url":"https://api.github.com/users/broadinstitute/followers","following_url":"https://api.github.com/users/broadinstitute/following{/other_user}","gists_url":"https://api.github.com/users/broadinstitute/gists{/gist_id}","starred_url":"https://api.github.com/users/broadinstitute/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/broadinstitute/subscriptions","organizations_url":"https://api.github.com/users/broadinstitute/orgs","repos_url":"https://api.github.com/users/broadinstitute/repos","events_url":"https://api.github.com/users/broadinstitute/events{/privacy}","received_events_url":"https://api.github.com/users/broadinstitute/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/broadinstitute/cromwell","description":"Workflow Execution Engine using WDL","fork":false,"url":"https://api.github.com/repos/broadinstitute/cromwell","forks_url":"https://api.github.com/repos/broadinstitute/cromwell/forks","keys_url":"https://api.github.com/repos/broadinstitute/cromwell/keys{/key_id}","collaborators_url":"https://api.github.com/repos/broadinstitute/cromwell/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/broadinstitute/cromwell/teams","hooks_url":"https://api.github.com/repos/broadinstitute/cromwell/hooks","issue_events_url":"https://api.github.com/repos/broadinstitute/cromwell/issues/events{/number}","events_url":"https://api.github.com/repos/broadinstitute/cromwell/events","assignees_url":"https://api.github.com/repos/broadinstitute/cromwell/assignees{/user}","branches_url":"https://api.github.com/repos/broadinstitute/cromwell/branches{/branch}","tags_url":"https://api.github.com/repos/broadinstitute/cromwell/tags","blobs_url":"https://api.github.com/repos/broadinstitute/cromwell/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/broadinstitute/cromwell/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/broadinstitute/cromwell/git/refs{/sha}","trees_url":"https://api.github.com/repos/broadinstitute/cromwell/git/trees{/sha}","statuses_url":"https://api.github.com/repos/broadinstitute/cromwell/statuses/{sha}","languages_url":"https://api.github.com/repos/broadinstitute/cromwell/languages","stargazers_url":"https://api.github.com/repos/broadinstitute/cromwell/stargazers","contributors_url":"https://api.github.com/repos/broadinstitute/cromwell/contributors","subscribers_url":"https://api.github.com/repos/broadinstitute/cromwell/subscribers","subscription_url":"https://api.github.com/repos/broadinstitute/cromwell/subscription","commits_url":"https://api.github.com/repos/broadinstitute/cromwell/commits{/sha}","git_commits_url":"https://api.github.com/repos/broadinstitute/cromwell/git/commits{/sha}","comments_url":"https://api.github.com/repos/broadinstitute/cromwell/comments{/number}","issue_comment_url":"https://api.github.com/repos/broadinstitute/cromwell/issues/comments{/number}","contents_url":"https://api.github.com/repos/broadinstitute/cromwell/contents/{+path}","compare_url":"https://api.github.com/repos/broadinstitute/cromwell/compare/{base}...{head}","merges_url":"https://api.github.com/repos/broadinstitute/cromwell/merges","archive_url":"https://api.github.com/repos/broadinstitute/cromwell/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/broadinstitute/cromwell/downloads","issues_url":"https://api.github.com/repos/broadinstitute/cromwell/issues{/number}","pulls_url":"https://api.github.com/repos/broadinstitute/cromwell/pulls{/number}","milestones_url":"https://api.github.com/repos/broadinstitute/cromwell/milestones{/number}","notifications_url":"https://api.github.com/repos/broadinstitute/cromwell/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/broadinstitute/cromwell/labels{/name}","releases_url":"https://api.github.com/repos/broadinstitute/cromwell/releases{/id}","deployments_url":"https://api.github.com/repos/broadinstitute/cromwell/deployments","created_at":"2015-04-17T19:39:36Z","updated_at":"2016-05-03T12:43:19Z","pushed_at":"2016-05-06T20:54:18Z","git_url":"git://github.com/broadinstitute/cromwell.git","ssh_url":"git@github.com:broadinstitute/cromwell.git","clone_url":"https://github.com/broadinstitute/cromwell.git","svn_url":"https://github.com/broadinstitute/cromwell","homepage":"","size":6836,"stargazers_count":60,"watchers_count":60,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":13,"mirror_url":null,"open_issues_count":103,"forks":13,"open_issues":103,"watchers":60,"default_branch":"0.19_hotfix"}},"_links":{"self":{"href":"https://api.github.com/repos/broadinstitute/cromwell/pulls/795"},"html":{"href":"https://github.com/broadinstitute/cromwell/pull/795"},"issue":{"href":"https://api.github.com/repos/broadinstitute/cromwell/issues/795"},"comments":{"href":"https://api.github.com/repos/broadinstitute/cromwell/issues/795/comments"},"review_comments":{"href":"https://api.github.com/repos/broadinstitute/cromwell/pulls/795/comments"},"review_comment":{"href":"https://api.github.com/repos/broadinstitute/cromwell/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/broadinstitute/cromwell/pulls/795/commits"},"statuses":{"href":"https://api.github.com/repos/broadinstitute/cromwell/statuses/e10a82aed66c1bef8d9b1521759eb520faad6142"}}}}