You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems reloadr doesnt work with gevent patching? Is this a known limitation? Is there possibly a workaround?
from reloadr import reloadr
from gevent import monkey
monkey.patch_all()
@reloadr
class Foo:
pass
Foo._start_watch_reload() # hangs forever
print("this is never executed")
I'm running python 3.7.7, reloadr 0.4.1 and gevent 20.9.0
Edit: manual reloads (Foo._reload()) seem to work!
The text was updated successfully, but these errors were encountered:
cyberw
changed the title
incompatible with gevent?
Auto reloads are incompatible with gevent
Feb 7, 2021
Seems this is a known incompatibility with watchdog. Now that I know that manual reloads work, I may be able to do a hack workaround (like start a separate greenlet that reloads every second or so)
It seems reloadr doesnt work with gevent patching? Is this a known limitation? Is there possibly a workaround?
I'm running python 3.7.7, reloadr 0.4.1 and gevent 20.9.0
Edit: manual reloads (
Foo._reload()
) seem to work!The text was updated successfully, but these errors were encountered: