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
{{ message }}
Repository navigation
[BUG] --watch does not reload code changes, despite console output saying so "files changed, reloading arq worker..." #429
Activity
epicwhale commentedon Mar 2, 2024
Anyone else facing this issue?
For now, I have configured my development with a VS code launch json config, that does a
"autoReload": {"enable": true}as a temporary workaroundvidjuheffex commentedon Mar 11, 2024
Lucky,
I don't even get:
files changed, reloading arq worker... 09:08:17: shutdown on SIGUSR1 ◆ 1 jobs complete ◆ 0 failed ◆ 0 retries ◆ 0 ongoing to cancelowalerys commentedon Mar 31, 2024
I also don't get the changes reflected in the worker even though it states it's been reloaded.
owalerys commentedon Mar 31, 2024
The problem is that the worker's source is never reloaded on a detected change in files watched.
See this line: https://github.com/samuelcolvin/arq/blob/ec1532b29d490e66b5c22424b51781865ea4cf44/arq/cli.py#L77
My solution is to use watchfiles directly
watchfiles "arq worker.WorkerSettings" ./