title: Google App Engine deferred.defer() error 404
body: <p>I'm trying to get running a task in the Task Queue using deferred.defer(). The task is added to the default task queue, but the task fail with a 404 error.</p>
  
  <p>This is the handler:</p>
  
  <pre><code>import webapp2
  import models
  
  import defer_ajust_utils
  
  from google.appengine.ext import ndb
  from google.appengine.ext import deferred
  
  class ajust_utils(webapp2.RequestHandler):
    def get(self):
      deferred.defer(defer_ajust_utils.DoTheJob)
  
  application = webapp2.WSGIApplication([('/ajust_utils', ajust_utils)], debug=True)
  </code></pre>
  
  <p>This is the module <strong>defer_ajust_utils</strong> :</p>
  
  <pre><code>import logging
  import models 
  from google.appengine.ext import ndb
  
  def DoTheJob():
    logging.info("Debut de la mise a jour des utilisateurs")
    utilisateurs = models.Utilisateur.query()
    utilisateurs = utilisateurs.fetch()
  
    for utilisateur in utilisateurs:
      utilisateur.produire_factures_i = False
      utilisateur.put()  
  
    logging.info("Fin de la mise a jour des utilisateurs")
  </code></pre>
  
  <p>And my <strong>app.yaml</strong> file :</p>
  
  <pre><code>application: xxxx
  version: dev
  runtime: python27
  api_version: 1
  threadsafe: yes
  
  builtins:
  - deferred: on
  
  handlers:
  - url: /ajust_utils
    script : tempo_ajuster_utils.application
    login: admin
  </code></pre>
  
  <p>Here's the log :</p>
  
  <pre><code>0.1.0.2 - - [10/Mar/2014:17:50:45 -0700] "POST /_ah/queue/deferred HTTP/1.1" 404 113
  "http://xxxx.appspot.com/ajust_utils" "AppEngine-Google;
  (+http://code.google.com/appengine)" "xxxx.appspot.com" ms=6 cpu_ms=0 
  cpm_usd=0.000013 queue_name=default task_name=17914595085560382799 
  app_engine_release=1.9.0 instance=00c61b117c0b3648693af0563b92051423b3cb
  </code></pre>
  
  <p>Thank you for help!!</p>