Skip to content

Commit

Permalink
fix: Increase timeout of VM run function (#584)
Browse files Browse the repository at this point in the history
Some indexers such as eduohe.near/access_keys potentially exceeds the
timeout of the VM while running. This may be due to latency of DB calls,
which is the heaviest parts of the code. We are planning to drive down
the latency of these calls, but this is a stopgap to allow indexers to
continue running in the mean time.
  • Loading branch information
Darun Seethammagari authored Feb 26, 2024
1 parent 78a83ae commit d519b08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runner/src/indexer/indexer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export default class Indexer {
}

await this.setStatus(functionName, blockHeight, 'RUNNING');
const vm = new VM({ timeout: 3000, allowAsync: true });
const vm = new VM({ timeout: 20000, allowAsync: true });
const context = this.buildContext(indexerFunction.schema, functionName, blockHeight, hasuraRoleName);

vm.freeze(block, 'block');
Expand Down

0 comments on commit d519b08

Please sign in to comment.