Skip to content
This repository was archived by the owner on Jan 23, 2025. It is now read-only.

Commit 962953e

Browse files
committed
Updating the error logging for a challenge that doesn't exist.
Turning off the retry.
1 parent d643aa5 commit 962953e

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

src/services/ProcessorService.js

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -380,12 +380,13 @@ async function processUpdate (message) {
380380
} catch (e) {
381381
// postponne kafka event
382382
logger.info('Challenge does not exist yet. Will post the same message back to the bus API')
383-
await new Promise((resolve) => {
384-
setTimeout(async () => {
385-
await helper.postBusEvent(config.UPDATE_CHALLENGE_TOPIC, message.payload)
386-
resolve()
387-
}, config.RETRY_TIMEOUT)
388-
})
383+
logger.error(`Error: ${JSON.stringify(e)}`)
384+
// await new Promise((resolve) => {
385+
// setTimeout(async () => {
386+
// await helper.postBusEvent(config.UPDATE_CHALLENGE_TOPIC, message.payload)
387+
// resolve()
388+
// }, config.RETRY_TIMEOUT)
389+
// })
389390
return
390391
}
391392

0 commit comments

Comments
 (0)