File tree Expand file tree Collapse file tree 5 files changed +7
-6
lines changed
Expand file tree Collapse file tree 5 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 1- console . log ( module )
Original file line number Diff line number Diff line change 1515async def main ():
1616 start = time .monotonic_ns ()
1717 await scheduler .init ()
18- await database .init ()
1918 await web .init ()
2019 await dashboard .init ()
2120 await cluster .init ()
@@ -29,7 +28,6 @@ async def main():
2928 finally :
3029 await cluster .unload ()
3130 await web .unload ()
32- await database .unload ()
3331 await scheduler .unload ()
3432
3533def init ():
Original file line number Diff line number Diff line change @@ -88,6 +88,10 @@ def cancel(task_id: Optional[int] = None):
8888 if task_id is None :
8989 return
9090 if task_id in tasks :
91- tasks .pop (task_id ).remove ()
91+ try :
92+ tasks .pop (task_id ).remove ()
93+ except :
94+ logger .debug (f'Task { task_id } was cancelled' )
95+ return
9296 logger .debug (f'Task { task_id } canceled' )
9397
Original file line number Diff line number Diff line change 3030 "cluster.debug.socketio.connected" : " SocketIO 已连接" ,
3131 "cluster.success.cluster.disable" : " 节点 [${cluster}] 已正常下线" ,
3232 "cluster.info.want_enable" : " 节点 [${cluster}] 正在启用中……" ,
33- "cluster.info.cluster.retry_enable" : " 节点 [${cluster }] 将在 [${delay}] 后重新启用" ,
34- "cluster.success.cluster.enable " : " 节点 [${cluster}] 已正常上线"
33+ "cluster.info.cluster.retry_enable" : " 节点 [${id }] 将在 [${delay}] 后重新启用" ,
34+ "cluster.success.enabled " : " 节点 [${cluster}] 已正常上线"
3535}
You can’t perform that action at this time.
0 commit comments