From 43cc1f3138866744f3c40471208cda8c59cfd3e8 Mon Sep 17 00:00:00 2001 From: Roman Donchenko Date: Fri, 10 Jan 2025 12:01:02 +0200 Subject: [PATCH] Fix webhooks worker not restarting (#8921) 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. --- changelog.d/20250109_195116_roman_restart_webhooks.md | 4 ++++ supervisord/worker.webhooks.conf | 1 + 2 files changed, 5 insertions(+) create mode 100644 changelog.d/20250109_195116_roman_restart_webhooks.md diff --git a/changelog.d/20250109_195116_roman_restart_webhooks.md b/changelog.d/20250109_195116_roman_restart_webhooks.md new file mode 100644 index 000000000000..bad05c5b281e --- /dev/null +++ b/changelog.d/20250109_195116_roman_restart_webhooks.md @@ -0,0 +1,4 @@ +### Fixed + +- Fixed webhook worker not restarting after losing Redis connection + () diff --git a/supervisord/worker.webhooks.conf b/supervisord/worker.webhooks.conf index 3884f386f96f..e3401b48b95b 100644 --- a/supervisord/worker.webhooks.conf +++ b/supervisord/worker.webhooks.conf @@ -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