Skip to content

Commit 112e1e8

Browse files
committed
fix: wip refactor of batch execution to account for non atomic batches
Signed-off-by: Tomás Migone <[email protected]>
1 parent 7697a93 commit 112e1e8

File tree

3 files changed

+308
-146
lines changed

3 files changed

+308
-146
lines changed

packages/indexer-common/src/indexer-management/actions.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ export class ActionManager {
334334
})
335335
if (pendingActions.length > 0) {
336336
logger.warn(
337-
`${pendingActions} Actions found in PENDING state when execution began. Was there a crash?` +
337+
`${pendingActions.length} Actions found in PENDING state when execution began. Was there a crash? ` +
338338
`These indicate that execution was interrupted while calling contracts, and will need to be cleared manually.`,
339339
)
340340
}
@@ -370,7 +370,7 @@ export class ActionManager {
370370
const allocationManager =
371371
this.allocationManagers[network.specification.networkIdentifier]
372372

373-
let results
373+
let results: AllocationResult[]
374374
try {
375375
// TODO: we should lift the batch execution (graph-node, then contracts) up to here so we can
376376
// mark the actions appropriately

0 commit comments

Comments
 (0)