provision: Don't run create_realm_internal_bots management command.

We essentially stop running create_realm_internal_bots during
every provisioing and move its operations to run from populate db.
In fact to speed things up a bit we actually make populate db call the
funcs which create_realm_internal_bots calls behind the scenes.

Fixes: #9467.
This commit is contained in:
Aditya Bansal
2018-05-23 09:16:30 +05:30
parent d343f25cc6
commit 8cfb437677
3 changed files with 7 additions and 4 deletions

View File

@@ -384,8 +384,6 @@ def main(options):
else:
print("No need to run `manage.py compilemessages`.")
run(["./manage.py", "create_realm_internal_bots"]) # Creates realm internal bots if required.
run(["scripts/lib/clean-unused-caches"])
version_file = os.path.join(UUID_VAR_PATH, 'provision_version')