fcfangcc / pyxxl

XXL-JOB的Python执行器实现,可以方便的将Python方法注册到XXL-JOB的调度中心上进行管理
https://fcfangcc.github.io/pyxxl/
GNU General Public License v3.0
60 stars 16 forks source link

xxl-job任务调度成功,但是在连接上注册中心的一瞬间进程被stop,同样环境移植到其他电脑可以正常调度 #57

Open studyletmehappy1 opened 3 weeks ago

studyletmehappy1 commented 3 weeks ago

jupyterhubs python testl.py /srv/jupyterhub/testl.py:20: SyntaxWarning; Using the sync method will unknown blocking exception, consider using async method. def example_job(): 2024-10-31 16:28:06.786 [MainThread] [NotInTask] INFO /usr/local/lib/python3, 10/dist-packages/pyxxl/main.py (cleanup ctx:107)- register with handlers [''] 2024-10-31 16:28:06.786 [MainThread] [NotInTask] INFO /usr/local/lib/python3.10/dist-packages/pyxxl/main. py (server_info_ctx: 31) - start executor server vith pid 76151. 2024-10-31 16:28:06.787 [MainThread] [NotInTask] INFO /usr/local/lib/python3.10/dist-packages/pyxxl/main. py (server_info_ctx:3) - stop executor server. pid-76151 2024-10-31 16:28:06.788 [MainThread] INotInTask] WARNING /us/ocal/ib/python3,10/dist-packages/pyxx1/main. py(register_task:76) Register task is exit. ERROR: asyncio: unhandled exception during asyncio.runO shutdown task: <Task finished name-'Task-1coo-< run app done, defined

fcfangcc commented 3 weeks ago

@studyletmehappy1 你的电脑什么系统。只在你电脑上复现?

studyletmehappy1 commented 3 weeks ago

本人windows上面可以正常调度注册,但是调用到项目机器上时就不等待直接stop,项目机器为linux,Ubuntu

fcfangcc commented 3 weeks ago

本人windows上面可以正常调度注册,但是调用到项目机器上时就不等待直接stop,项目机器为linux,Ubuntu

信息太少了,设成debug模式,看看更多的日志