BentoML icon indicating copy to clipboard operation
BentoML copied to clipboard

bug: auto-restart function for BentoML not working on a Windows Machine

Open DeleMike opened this issue 3 years ago • 4 comments

Describe the bug

I am trying to enable auto-restart on Bento-ML development server and I am not seeing any server restart upon code change.

I used this to start the service: bentoml serve service.py:service --reload

To reproduce

I ran this bentoml serve service.py:service --reload to test the auto-restart function

Expected behavior

I expect it to restart server upon code change

Environment

bentoml, version 1.0.7 python 3.7 Windows 10, hp

DeleMike avatar Oct 18 '22 19:10 DeleMike

Basically, I think this issue is occurring for all Windows OS. I am Win8.1, Python 3.9 user and having the same issue.

MuhammadAwon avatar Oct 19 '22 15:10 MuhammadAwon

@MuhammadAwon could you please try without the --reload functionality?

ssheng avatar Oct 19 '22 20:10 ssheng

@ssheng Basically it is same for me, if I run the command with or without --reload. I have to stop the server and rerun it after every time I am making changes in the service.py.

MuhammadAwon avatar Oct 19 '22 21:10 MuhammadAwon

@DeleMike Did you ever get a fix for this ? If so how did you resolve it ?

rubanzasilva avatar Dec 30 '24 15:12 rubanzasilva