Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
upgrade-zulip: Prevent restarting only Django into inconsistent caching.
Alex Vandiver72f667fb311a
diff --git a/scripts/lib/upgrade-zulip-stage-3 b/scripts/lib/upgrade-zulip-stage-3index 057f8f2a649..c896138f29e 100755--- a/scripts/lib/upgrade-zulip-stage-3+++ b/scripts/lib/upgrade-zulip-stage-3@@ -96,6 +96,13 @@ if args.skip_restart:if not args.skip_puppet and args.less_graceful:logging.warning("Ignored --less-graceful; all upgrades without --skip-puppet are ungraceful.")+if args.only_django:+ logging.error(+ "Only restarting Django into a new deployment leads to inconsistent caches "+ "with Tornado; use --skip-client-reloads instead."+ )+ sys.exit(1)+deploy_path = args.deploy_pathos.chdir(deploy_path)