Handle restarts during historical processing in watcher (#455)

* Reset to latest processed block on restarting job-runner

* Update sync status during historical processing in job-runner

* Codegen changes

* Use sync status latest processed block for subgraph _meta GQL query

* Set job per interval for subscribing events queue to 1

* Fix events processing skipped for blocks after template create
This commit is contained in:
2023-11-08 14:28:53 +05:30
committed by GitHub
parent 97bd4014d6
commit f2c5f67777
14 changed files with 207 additions and 137 deletions
+2 -1
View File
@@ -114,7 +114,8 @@ export class JobRunnerCmd {
// Delete all active and pending (before completed) jobs to start job-runner without old queued jobs
await jobRunner.jobQueue.deleteAllJobs('completed');
await jobRunner.resetToPrevIndexedBlock();
await jobRunner.resetToLatestProcessedBlock();
await indexer.updateSyncStatusIndexingError(false);
await startJobRunner(jobRunner);