Skip to content

Commit

Permalink
Recover from database failures when reading the workflow store.
Browse files Browse the repository at this point in the history
  • Loading branch information
mcovarr committed Apr 5, 2017
1 parent caab258 commit 62c66e7
Showing 1 changed file with 5 additions and 0 deletions.
Expand Up @@ -129,6 +129,11 @@ final case class WorkflowStoreEngineActor(store: WorkflowStore, serviceRegistryA
runnableWorkflows map {
case x :: xs => NewWorkflowsToStart(NonEmptyList.of(x, xs: _*))
case _ => NoNewWorkflowsToStart
} recover {
case e =>
// Log the error but return a successful Future so as not to hang future workflow store polls.
log.error(e, "Error trying to fetch new workflows")
NoNewWorkflowsToStart
}
}
}
Expand Down

0 comments on commit 62c66e7

Please sign in to comment.