seek: douban group
All checks were successful
Gitea Actions Demo / deploy (push) Successful in 33s

This commit is contained in:
konjacpotato
2026-02-15 12:37:48 +08:00
parent 72b117b57c
commit 51d1c403f5
10 changed files with 131 additions and 18 deletions

View File

@ -1,13 +1,11 @@
import datetime
from functools import partial
from apscheduler.schedulers.blocking import BlockingScheduler
from config import config
from log.log_manager import log, logger
from task.manager_task import manager_task
from apscheduler.events import EVENT_JOB_ERROR
from config import config
from task import manager_task
from utils import logger
def job_error_listener(event):
if event.exception:
@ -31,7 +29,7 @@ if __name__ == '__main__':
scheduler.add_listener(job_error_listener, EVENT_JOB_ERROR)
try:
log(f"started successfully.")
logger.info(f"started successfully.")
scheduler.start() # 阻塞运行
except (KeyboardInterrupt, SystemExit):
log(f"Shutting down ...")
logger.info(f"Shutting down ...")