Revert "Reduce API response times by caching migration flag"

This reverts commit 5433af6716.
This commit is contained in:
AlanCoding
2020-01-02 09:08:51 -05:00
parent 1f46878652
commit 8d4425f056
3 changed files with 5 additions and 24 deletions

View File

@@ -263,12 +263,6 @@ def apply_cluster_membership_policies():
logger.debug('Cluster policy computation finished in {} seconds'.format(time.time() - started_compute))
@task(queue='tower_broadcast_all', exchange_type='fanout')
def set_migration_flag():
logger.debug('Received migration-in-progress signal, will serve redirect.')
cache.set('migration_in_progress', True)
@task(queue='tower_broadcast_all', exchange_type='fanout')
def handle_setting_changes(setting_keys):
orig_len = len(setting_keys)