From 4636dbcb3db67904702667ed540eebe12b3a5772 Mon Sep 17 00:00:00 2001 From: Gabe Hamilton Date: Mon, 16 Oct 2023 14:35:31 -0600 Subject: [PATCH] ignore all runner errors in V1 rather than sending them to the DLQ (#295) --- indexer-js-queue-handler/handler.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/indexer-js-queue-handler/handler.js b/indexer-js-queue-handler/handler.js index 1b6978386..52e90abd0 100644 --- a/indexer-js-queue-handler/handler.js +++ b/indexer-js-queue-handler/handler.js @@ -23,6 +23,10 @@ export const consumer = async (event) => { const function_name = function_config.account_id + '/' + function_config.function_name; functions[function_name] = function_config; - const mutations = await indexer.runFunctions(block_height, functions, is_historical, {imperative: true, provision: true}); + try { + const mutations = await indexer.runFunctions(block_height, functions, is_historical, {imperative: true, provision: true}); + } catch(e) { + console.error(e); + } } };