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
I periodically get this exception when calling start:
ArgumentError: Listen::Listener can't change state from 'stopped' to 'processing_events', only to: backend_started
I'm not sure why this is happening. I believe I'm setting the file_listener variable to a new Listener instance, so the state of that instance should be the default state, :initializing.
Unfortunately, there's nothing in my logs to shed light on this (I have set LISTEN_GEM_DEBUGGING=debug).
Is there additional lifecycle management I need to do on the listeners? Is there a better approach to be taking?
@christopher-b One approach you could use would be to nil out the file listener once you stop it. That's reasonable since it won't be useful after that point. Then you'd need to create a new one when needed.
Activity
ColinDKelley commentedon Apr 16, 2024
@christopher-b One approach you could use would be to
nilout the file listener once you stop it. That's reasonable since it won't be useful after that point. Then you'd need to create a new one when needed.