docs: def update_constants():
      """Recreate channel name constants with changed settings.
  
      This kludge is mostly needed due to the way Django settings are
      patched for testing and how modules need to be imported throughout
      the project. On import time, settings are not patched yet, but some
      of the code needs static values immediately. Updating functions such
      as this one are then needed to fix dummy values.
      """
      global MANAGER_CONTROL_CHANNEL, MANAGER_EXECUTOR_CHANNELS  # pylint: disable=global-statement
      global MANAGER_LISTENER_STATS, MANAGER_STATE_PREFIX  # pylint: disable=global-statement
      redis_prefix = getattr(settings, 'FLOW_MANAGER', {}).get('REDIS_PREFIX', '')
  
      MANAGER_CONTROL_CHANNEL = '{}.control'.format(redis_prefix)
      MANAGER_EXECUTOR_CHANNELS = ManagerChannelPair(
          '{}.result_queue'.format(redis_prefix),
          '{}.result_queue_response'.format(redis_prefix),
      )
      MANAGER_STATE_PREFIX = '{}.state'.format(redis_prefix)
      MANAGER_LISTENER_STATS = '{}.listener_stats'.format(redis_prefix)