Skip to content

Commit

Permalink
Shorten the seal status update check interval and minSealStartTime to…
Browse files Browse the repository at this point in the history
… speed up the status update process
  • Loading branch information
wuhaixian1984 committed Jul 8, 2024
1 parent b106018 commit a368310
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tasks/seal-status-updater-task.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { getTimestamp } from '../utils';
import { isSealDone } from './pull-utils';
import { IsStopped, makeIntervalTask } from './task-utils';

const MinSealStartTime = 10 * 60; // 10 minutes for a sealing job to start
const MinSealStartTime = 30; // 30 seconds for a sealing job to start
const SealUpdateTimeout = 30 * 60; // 30 minutes for a sealing job timeout

/**
Expand Down Expand Up @@ -117,7 +117,7 @@ export async function createSealStatuUpdater(
context: AppContext,
loggerParent: Logger,
): Promise<SimpleTask> {
const sealStatusUpdateInterval = 2 * 60 * 1000; // update seal status every 2 minutes
const sealStatusUpdateInterval = 1 * 60 * 1000; // update seal status every 1 minutes
return makeIntervalTask(
1 * 60 * 1000,
sealStatusUpdateInterval,
Expand Down

0 comments on commit a368310

Please sign in to comment.