code: def write_points(data, force_disable_threading=False):
      
      if getattr(settings, 'INFLUXDB_DISABLED', False):
          return
  
      client = get_client()
      use_threading = getattr(settings, 'INFLUXDB_USE_THREADING', False)
      if force_disable_threading:
          use_threading = False
      if use_threading is True:
          thread = Thread(target=process_points, args=(client, data, ))
          thread.start()
      else:
          process_points(client, data)
docs: Writes a series to influxdb.
  
      :param data: Array of dicts, as required by
        https://github.com/influxdb/influxdb-python
      :param force_disable_threading: When being called from the Celery task, we
        set this to `True` so that the user doesn't accidentally use Celery and
        threading at the same time.