upgrade: Skip re-checking of new bots on upgrade.

This was added in c770bdaa3a, and we
have not added any realm-internal bots since
c770bdaa3a.

Speed up the critical period during upgrades by skipping this step.
This commit is contained in:
Alex Vandiver 2022-03-14 12:31:04 -07:00 committed by Tim Abbott
parent 560cf06b72
commit 52d363cada
1 changed files with 0 additions and 2 deletions

View File

@ -365,8 +365,6 @@ if migrations_needed:
logging.info("Applying database migrations...") logging.info("Applying database migrations...")
subprocess.check_call(["./manage.py", "migrate", "--noinput"], preexec_fn=su_to_zulip) 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...") logging.info("Restarting Zulip...")
if IS_SERVER_UP or not args.skip_puppet: if IS_SERVER_UP or not args.skip_puppet:
# Even if the server wasn't up previously, puppet might have # Even if the server wasn't up previously, puppet might have