From d282393035bb171d6126fd1b06ee9ad4ea3b56ba Mon Sep 17 00:00:00 2001 From: jessicamack Date: Wed, 26 Apr 2023 11:37:10 -0400 Subject: [PATCH] change exit code Signed-off-by: jessicamack --- awx/main/management/commands/run_heartbeet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/main/management/commands/run_heartbeet.py b/awx/main/management/commands/run_heartbeet.py index a7dab206f4..cfe86bc25c 100644 --- a/awx/main/management/commands/run_heartbeet.py +++ b/awx/main/management/commands/run_heartbeet.py @@ -55,7 +55,7 @@ class Command(BaseCommand): def notify_listener_and_exit(self, *args): with pg_bus_conn(new_connection=False) as conn: conn.notify('web_heartbeet', self.construct_payload(action='offline')) - sys.exit(1) + sys.exit(0) def do_hearbeat_loop(self): with pg_bus_conn(new_connection=True) as conn: