title: Celery: No Result Backend Configured?
body: <p>I am trying to check celery results from the command line but get a <code>No Result Backend Configured</code> error. I have setup redis as my result backend and am now at a loss. </p>
  
  <p>I have the celery app setup like so:</p>
  
  <p><code>qflow/celery.py</code>:</p>
  
  <pre><code>os.environ.setdefault('CELERY_CONFIG_MODULE', 'qflow.celeryconfig')
  
  app = Celery(
      'qflow',
      include=['qflow.tasks']
  )
  app.config_from_envvar('CELERY_CONFIG_MODULE')
  </code></pre>
  
  <p>The config module (<code>qflow/celeryconfig.py</code>) looks like so:</p>
  
  <pre><code>broker_url = 'redis://localhost:6379/0'
  result_backend = 'redis://localhost:6379/0'
  result_persistent = True
  task_result_expires = None
  send_events = True
  </code></pre>
  
  <p>The celery worker starts fine:</p>
  
  <pre><code>$ celery -A qflow worker -E -l info
  
   -------------- celery@james-laptop v4.0.2 (latentcall)
  ---- **** ----- 
  --- * ***  * -- Linux-4.8.0-52-generic-x86_64-with-debian-stretch-sid 2017-07-21 14:22:34
  -- * - **** --- 
  - ** ---------- [config]
  - ** ---------- .&gt; app:         qflow:0x7fcbde317f28
  - ** ---------- .&gt; transport:   redis://localhost:6379/0
  - ** ---------- .&gt; results:     redis://localhost:6379/0
  - *** --- * --- .&gt; concurrency: 4 (prefork)
  -- ******* ---- .&gt; task events: ON
  --- ***** ----- 
   -------------- [queues]
                  .&gt; celery           exchange=celery(direct) key=celery
  </code></pre>
  
  <p>It seems to indicate that results are configured. </p>
  
  <p>I import the tasks and start them from my webapp (based on falcon, running with gunicorn), but when I try to query it on the command line with <code>celery result &lt;task_id&gt;</code>, I get:</p>
  
  <pre><code>Traceback (most recent call last):
    File "/home/james/miniconda3/envs/qflow/bin/celery", line 11, in &lt;module&gt;
      load_entry_point('celery', 'console_scripts', 'celery')()
    File "/home/james/miniconda3/envs/qflow/lib/python3.6/site-packages/celery/__main__.py", line 14, in main
      _main()
    File "/home/james/miniconda3/envs/qflow/lib/python3.6/site-packages/celery/bin/celery.py", line 326, in main
      cmd.execute_from_commandline(argv)
    File "/home/james/miniconda3/envs/qflow/lib/python3.6/site-packages/celery/bin/celery.py", line 488, in execute_from_commandline
      super(CeleryCommand, self).execute_from_commandline(argv)))
    File "/home/james/miniconda3/envs/qflow/lib/python3.6/site-packages/celery/bin/base.py", line 281, in execute_from_commandline
      return self.handle_argv(self.prog_name, argv[1:])
    File "/home/james/miniconda3/envs/qflow/lib/python3.6/site-packages/celery/bin/celery.py", line 480, in handle_argv
      return self.execute(command, argv)
    File "/home/james/miniconda3/envs/qflow/lib/python3.6/site-packages/celery/bin/celery.py", line 412, in execute
      ).run_from_argv(self.prog_name, argv[1:], command=argv[0])
    File "/home/james/miniconda3/envs/qflow/lib/python3.6/site-packages/celery/bin/base.py", line 285, in run_from_argv
      sys.argv if argv is None else argv, command)
    File "/home/james/miniconda3/envs/qflow/lib/python3.6/site-packages/celery/bin/base.py", line 368, in handle_argv
      return self(*args, **options)
    File "/home/james/miniconda3/envs/qflow/lib/python3.6/site-packages/celery/bin/base.py", line 244, in __call__
      ret = self.run(*args, **kwargs)
    File "/home/james/miniconda3/envs/qflow/lib/python3.6/site-packages/celery/bin/result.py", line 40, in run
      value = task_result.get()
    File "/home/james/miniconda3/envs/qflow/lib/python3.6/site-packages/celery/result.py", line 189, in get
      on_message=on_message,
    File "/home/james/miniconda3/envs/qflow/lib/python3.6/site-packages/celery/backends/base.py", line 466, in wait_for_pending
      no_ack=no_ack,
    File "/home/james/miniconda3/envs/qflow/lib/python3.6/site-packages/celery/backends/base.py", line 772, in _is_disabled
      raise NotImplementedError(E_NO_BACKEND.strip())
  NotImplementedError: No result backend is configured.
  Please see the documentation for more information.
  </code></pre>
  
  <p>I'm running on linux (4.8.0-52-generic)</p>