Skip to content

Commit

Permalink
PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Thibault Jeandet committed Mar 23, 2017
1 parent 815045e commit ee36f69
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,10 @@ trait AsyncBackendJobExecutionActor { this: Actor with ActorLogging =>
}

private def robustExecuteOrRecover(mode: ExecutionMode) = {
// withRetry(() => executeOrRecover(mode), executeOrRecoverBackOff) onComplete {
// case Success(h) => self ! IssuePollRequest(h)
// case Failure(t) => self ! FailAndStop(t)
// }
self ! PollResponseReceived(SuccessfulExecutionHandle(Map.empty, 0, Map.empty, Seq.empty, None))
withRetry(() => executeOrRecover(mode), executeOrRecoverBackOff) onComplete {
case Success(h) => self ! IssuePollRequest(h)
case Failure(t) => self ! FailAndStop(t)
}
}

def pollBackOff: SimpleExponentialBackoff
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,7 @@ final case class ExecutionStore(private val statusStore: Map[JobKey, ExecutionSt
def runnableScopes = keysWithStatus(NotStarted) filter arePrerequisitesDone(doneKeys)

def findCompletedShardsForOutput(key: CollectorKey): List[JobKey] = doneKeys collect {
case k: CallKey if k.scope == key.scope && k.isShard => k
case k: DynamicDeclarationKey if k.scope == key.scope && k.isShard => k
case k @ (_: CallKey | _:DynamicDeclarationKey) if k.scope == key.scope && k.isShard => k
}

// Just used to decide whether a collector can be run. In case the shard entries haven't been populated into the
Expand Down

0 comments on commit ee36f69

Please sign in to comment.