Skip to content

Commit

Permalink
fix: fix update proxy cache interval
Browse files Browse the repository at this point in the history
  • Loading branch information
hezhengxu2018 committed Dec 19, 2023
1 parent 41876a6 commit c0dc9af
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/port/schedule/CheckProxyCacheUpdateWorker.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import { EggAppConfig, EggLogger } from 'egg';
import { IntervalParams, Schedule, ScheduleType } from '@eggjs/tegg/schedule';
import { CronParams, Schedule, ScheduleType } from '@eggjs/tegg/schedule';
import { Inject } from '@eggjs/tegg';
import { ProxyCacheRepository } from '../../repository/ProxyCacheRepository';
import { SyncMode } from '../../common/constants';
import { ProxyCacheService, isPkgManifest } from '../../core/service/ProxyCacheService';

@Schedule<IntervalParams>({
@Schedule<CronParams>({
type: ScheduleType.WORKER,
scheduleData: {
interval: 216000000, // 1000 * 60 * 3600 every hour.
cron: '0 3 * * *', // run every day at 03:00
},
})
export class CheckProxyCacheUpdateWorker {
Expand Down

0 comments on commit c0dc9af

Please sign in to comment.