mirror of
https://github.com/cerc-io/watcher-ts
synced 2026-09-05 15:34:07 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user