Skip to content

Commit

Permalink
Prepare backfill: catch exception in clients and send message (#307)
Browse files Browse the repository at this point in the history
Will only merge this after we have all deployed the new server code
  • Loading branch information
shellderp authored May 23, 2023
1 parent 2d1a24f commit 32973f0
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,13 @@ class BackfilaClientServiceHandler @Inject constructor(
logger.info { "Preparing backfill `${request.backfill_name}`" }

val operator = operatorFactory.create(request.backfill_name)
return@withBackfillRunLogging operator.prepareBackfill(request)
try {
return@withBackfillRunLogging operator.prepareBackfill(request)
} catch (exception: Exception) {
return@withBackfillRunLogging PrepareBackfillResponse.Builder()
.error_message(exception.message)
.build()
}
}
}

Expand Down

0 comments on commit 32973f0

Please sign in to comment.