我如何在heroku的discord.py机器人中修复“使用SIGTERM停止所有进程”

时间:2020-07-19 16:07:06

标签: python heroku discord.py

所以我要在Heroku中免费托管我的Discord机器人(这不好,但我不能提供付款rn) 因此,昨天我的机器人一直运行良好,今天醒来时,我从Discord机器人列表中得到了批准的消息,此后,我的机器人开始连续上线和下线,因此我重新启动了所有测功机,并将其记录在日志中。

Restarting
2020-07-19T15:48:44.371670+00:00 heroku[worker.1]: State changed from up to starting
2020-07-19T15:48:45.296606+00:00 heroku[worker.1]: Stopping all processes with SIGTERM
2020-07-19T15:48:45.677248+00:00 app[worker.1]: sys:1: RuntimeWarning: coroutine 'Command.__call__' was never awaited
2020-07-19T15:48:46.013782+00:00 heroku[worker.1]: Process exited with status 0
2020-07-19T15:48:49.175960+00:00 heroku[worker.1]: Starting process with command `python Yam-Yam.py`
2020-07-19T15:48:49.836878+00:00 heroku[worker.1]: State changed from starting to up
2020-07-19T15:53:23.090024+00:00 heroku[worker.1]: Restarting
2020-07-19T15:53:23.103443+00:00 heroku[worker.1]: State changed from up to starting
2020-07-19T15:53:24.363803+00:00 heroku[worker.1]: Stopping all processes with SIGTERM

能否请您告诉我为什么会这样以及如何解决

0 个答案:

没有答案