From 52d363cadabde1c7e10f35e8a782995aad7adf12 Mon Sep 17 00:00:00 2001 From: Alex Vandiver Date: Mon, 14 Mar 2022 12:31:04 -0700 Subject: [PATCH] upgrade: Skip re-checking of new bots on upgrade. This was added in c770bdaa3a66db6ca6197df33a08ef78847538f4, and we have not added any realm-internal bots since c770bdaa3a66db6ca6197df33a08ef78847538f4. Speed up the critical period during upgrades by skipping this step. --- scripts/lib/upgrade-zulip-stage-2 | 2 -- 1 file changed, 2 deletions(-) diff --git a/scripts/lib/upgrade-zulip-stage-2 b/scripts/lib/upgrade-zulip-stage-2 index d0e7b0a837..8d3d972506 100755 --- a/scripts/lib/upgrade-zulip-stage-2 +++ b/scripts/lib/upgrade-zulip-stage-2 @@ -365,8 +365,6 @@ if migrations_needed: logging.info("Applying database migrations...") subprocess.check_call(["./manage.py", "migrate", "--noinput"], preexec_fn=su_to_zulip) -subprocess.check_call(["./manage.py", "create_realm_internal_bots"], preexec_fn=su_to_zulip) - logging.info("Restarting Zulip...") if IS_SERVER_UP or not args.skip_puppet: # Even if the server wasn't up previously, puppet might have