|
|
@@ -617,6 +617,9 @@ async def start_retry_scheduler():
|
|
|
|
|
|
@AccountRouter.on_event("shutdown")
|
|
|
async def stop_retry_scheduler():
|
|
|
- if scheduler.running:
|
|
|
- scheduler.shutdown(wait=False)
|
|
|
- log.info("[重试任务] 定时任务已停止")
|
|
|
+ try:
|
|
|
+ if scheduler.running:
|
|
|
+ scheduler.shutdown(wait=False)
|
|
|
+ log.info("[重试任务] 定时任务已停止")
|
|
|
+ except Exception:
|
|
|
+ pass
|