In python 3 restarting a process results in None return code
Traceback (most recent call last):
File "C:\Python37\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "C:\Python37\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Python37\lib\site-packages\supervisor\supervisord.py", line 418, in <module>
main()
File "C:\Python37\lib\site-packages\supervisor\supervisord.py", line 400, in main
go(options)
File "C:\Python37\lib\site-packages\supervisor\supervisord.py", line 412, in go
d.main()
File "C:\Python37\lib\site-packages\supervisor\supervisord.py", line 92, in main
self.run()
File "C:\Python37\lib\site-packages\supervisor\supervisord.py", line 113, in run
self.runforever()
File "C:\Python37\lib\site-packages\supervisor\supervisord.py", line 288, in runforever
self.reap()
File "C:\Python37\lib\site-packages\supervisor\supervisord.py", line 322, in reap
for pid, sts in self.options.waitpid():
File "C:\Python37\lib\site-packages\supervisor\options.py", line 1150, in waitpid
stopped.append((pid, (process.poll(), process.message)))
File "C:\Python37\lib\site-packages\supervisor\helpers.py", line 29, in message
elif self.returncode < 0:
TypeError: '<' not supported between instances of 'NoneType' and 'int'
In python 3 restarting a process results in None return code