title: Launching celery tasks in cherrypy
body: <p>i am building restful interface using cherrypy and i need to launch some celery tasks 
  But it seems doesn't work and i have no idea why?</p>
  
  <p>Myaybe someone was faced with such.</p>
  
  <p>So, i have celeryconfig.py</p>
  
  <pre><code>CELERY_RESULT_BACKEND = "database"
  CELERY_RESULT_DBURI = "sqlite:///celerydb.sqlite" 
  CELERY_IMPORTS = ("tasks", ) 
  CELERY_RESULT_ENGINE_OPTIONS = {"echo": True} 
  BROKER_TRANSPORT = "sqlalchemy" 
  BROKER_HOST = "sqlite:///celerydb.sqlite"
  </code></pre>
  
  <p>And tasks.py</p>
  
  <pre><code>from celery.task import task
  
  @task
  def create_agent(agent_id):
      print ("do something")
  </code></pre>
  
  <p>I am launching celeryd </p>
  
  <pre><code>celeryd -l INFO     
  </code></pre>
  
  <p>Also i have a request handler (CherryPy)</p>
  
  <pre><code>class Resource(object):
      def POST(self):
          create_agent.delay(1)
  </code></pre>
  
  <p>I can call create_agent.delay(1) task from the python console and celery worker gets the task and work
  But when create_agent.delay(1) is called in cherrypy (by touching appropriate url)
  celery worker does not get the task at all.</p>
  
  <p>And more. I use python3.2</p>