From ca9f2db201a5a3007cc15f794ef8113c19d99de0 Mon Sep 17 00:00:00 2001 From: Vincent Taglia Date: Thu, 8 Aug 2024 11:12:28 -0500 Subject: [PATCH] indexer-common: remove failed subgraph check --- .../indexer-common/src/indexer-management/allocations.ts | 7 ------- 1 file changed, 7 deletions(-) diff --git a/packages/indexer-common/src/indexer-management/allocations.ts b/packages/indexer-common/src/indexer-management/allocations.ts index 91a714efd..d892d14e1 100644 --- a/packages/indexer-common/src/indexer-management/allocations.ts +++ b/packages/indexer-common/src/indexer-management/allocations.ts @@ -378,7 +378,6 @@ export class AllocationManager { // Check that the subgraph is syncing and healthy before allocating // Throw error if: // - subgraph deployment is not syncing, - // - subgraph deployment is failed const status = context.indexingStatuses.find( (status) => status.subgraphDeployment.ipfsHash == deployment.ipfsHash, ) @@ -388,12 +387,6 @@ export class AllocationManager { `Subgraph deployment, '${deployment.ipfsHash}', is not syncing`, ) } - if (status?.health == 'failed') { - throw indexerError( - IndexerErrorCode.IE077, - `Subgraph deployment, '${deployment.ipfsHash}', has failed`, - ) - } logger.debug('Obtain a unique Allocation ID') const activeAndRecentlyClosedAllocations: Allocation[] = [