Skip to content

Commit

Permalink
Fix webhooks worker not restarting (#8921)
Browse files Browse the repository at this point in the history
rq can exit with a 0 status if its Redis connection times out, which means
that supervisord will not restart it by default. Set `autorestart=true`,
like for all other workers.
  • Loading branch information
SpecLad authored Jan 10, 2025
1 parent 2da1c9b commit 43cc1f3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions changelog.d/20250109_195116_roman_restart_webhooks.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
### Fixed

- Fixed webhook worker not restarting after losing Redis connection
(<https://github.com/cvat-ai/cvat/pull/8921>)
1 change: 1 addition & 0 deletions supervisord/worker.webhooks.conf
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ command=%(ENV_HOME)s/wait_for_deps.sh
environment=VECTOR_EVENT_HANDLER="SynchronousLogstashHandler",CVAT_POSTGRES_APPLICATION_NAME="cvat:worker:webhooks"
numprocs=%(ENV_NUMPROCS)s
process_name=%(program_name)s-%(process_num)d
autorestart=true

[program:smokescreen]
command=smokescreen --listen-ip=127.0.0.1 %(ENV_SMOKESCREEN_OPTS)s

0 comments on commit 43cc1f3

Please sign in to comment.