Skip to content

Commit

Permalink
fix: apscheduler interval unit
Browse files Browse the repository at this point in the history
  • Loading branch information
z0z0r4 committed Dec 29, 2024
1 parent 5f6e009 commit b9944c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions start.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,15 @@ async def main():
# 添加定时同步任务,用于检查 api 未找到的请求数据
curseforge_sync_job = scheduler.add_job(
sync_curseforge_queue,
trigger=IntervalTrigger(minutes=config.interval_sync_curseforge),
trigger=IntervalTrigger(seconds=config.interval_sync_curseforge),
name="mcim_sync_curseforge",
max_instances=1,
coalesce=True,
)

modrinth_sync_job = scheduler.add_job(
sync_modrinth_queue,
trigger=IntervalTrigger(minutes=config.interval_sync_modrinth),
trigger=IntervalTrigger(seconds=config.interval_sync_modrinth),
name="mcim_sync_modrinth",
max_instances=1,
coalesce=True,
Expand Down

0 comments on commit b9944c8

Please sign in to comment.