need to restart python while applying Celery config
<p>That's a small story...</p>

<p>I had this error:</p>

<blockquote>
  <p>AttributeError: 'DisabledBackend' object has no attribute '_get_task_meta_for'</p>
</blockquote>

<p>When changed tasks.py, like Diederik said at <a href="http://stackoverflow.com/questions/23215311/celery-with-rabbitmq-attributeerror-disabledbackend-object-has-no-attribute/39997411#39997411">Celery with RabbitMQ: AttributeError: &#39;DisabledBackend&#39; object has no attribute &#39;_get_task_meta_for&#39;</a></p>

<pre><code>app = Celery('tasks', backend='rpc://', broker='amqp://guest@localhost//')
</code></pre>

<p>ran it</p>

<pre><code>&gt;&gt;&gt; from tasks import add
&gt;&gt;&gt; result = add.delay(4,50)
&gt;&gt;&gt; result.ready()
</code></pre>

<p>got DisabledBackend again ... hmm what was that..</p>

<p>put code to file run.py and it returned True...</p>

<pre><code>from tasks import add
try:
        result = add.delay(1,4)
        print (result.ready())
except:
        print "exept"
</code></pre>

<p>I see that if I call >>> from tasks import add after tasks.py changed, it doesn't get the updates... That behaviour is the same for ipython, so because of I can't understand the reason, I advice people to DEBUG from scripts like ~runthis.py </p>

<p>Will be glad for answer which will smash my idea...</p>

<p>If using the interpreter, you need to </p>

<pre><code>reload(tasks)
</code></pre>

<p>this will force reimport tasks module</p>

python ipython celery