Skip to content

Commit

Permalink
Merge pull request #309 from VEuPathDB/issue-307
Browse files Browse the repository at this point in the history
Don't resend reconciliation trigger on update meta exception
  • Loading branch information
Foxcapades authored May 17, 2024
2 parents bdb5244 + afe2964 commit 5639c59
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,9 @@ internal class UpdateMetaTriggerHandlerImpl(
}

private suspend fun updateMeta(dm: DatasetManager, kr: KafkaRouter, msg: EventMessage) {
try {
updateMeta(dm, msg.userID, msg.datasetID)
} finally {
if (msg.eventSource != EventSource.FullReconciler)
kr.sendReconciliationTrigger(msg.userID, msg.datasetID, msg.eventSource)
}
updateMeta(dm, msg.userID, msg.datasetID)
if (msg.eventSource != EventSource.FullReconciler)
kr.sendReconciliationTrigger(msg.userID, msg.datasetID, msg.eventSource)
}

private suspend fun updateMeta(dm: DatasetManager, userID: UserID, datasetID: DatasetID) {
Expand Down

0 comments on commit 5639c59

Please sign in to comment.