how to *not* use _ah/queue/deferred?

988 views
Skip to first unread message

Ivan Uemlianin

unread,
Nov 11, 2010, 7:51:07 AM11/11/10
to Google App Engine
Dear All

app id: bigmarch2010

We are running a very simple app on the appengine. We're using django-
nonrel, but the app is not very complicated.

In particular, there seems to be no need to use the task queue, so I
have commented out the relevant line in our app.yaml:

# - url: /_ah/queue/deferred
# script: djangoappengine/deferred/handler.py
# login: admin

However, the logs show that the task queue is still active --- or
rather, it exists, but in a broken state: tasks pile up in the queue,
and 404s pile up in the logs, e.g.:

11-11 04:42AM 26.081 /_ah/queue/deferred 404 313ms 0cpu_ms 0kb
AppEngine-Google; (+http://code.google.com/appengine)

Please could somebody help with the following questions:
- I am not sending any task queue requests, so where can they be
coming from?
- The deferred system doesn't seem to be doing anything useful (or at
all): how can I switch it off properly?

With thanks and best wishes

Ivan

风笑雪

unread,
Nov 11, 2010, 11:16:08 PM11/11/10
to google-a...@googlegroups.com
The status was 404, means GAE tried to execute this task, but failed since it couldn't find the request page.

So the task will run forever until the status become 2xx, that's why it always active.

----------
keakon

Ivan Uemlianin

unread,
Nov 13, 2010, 6:44:47 AM11/13/10
to Google App Engine
Dear 风笑雪

Thank you for your comment.

It's failing to find the request page because I've commented out the
url: /_ah/queue/deferred line in my app.yaml.

However, it's not just old tasks re-running: new tasks are being
created.

Is there any way I can stop these tasks being generated? As far as I
can tell, there's nothing in my code which is generating them.

I "purge" the task queue, deleting all the tasks, and the queue just
fills up again.

I don't know what is creating these tasks or sending them to the
queue. Can anyone advise how I can find out?

With thanks and best wishes

Ivan


P. Petrov

unread,
Nov 13, 2010, 6:57:07 AM11/13/10
to google-a...@googlegroups.com
Django-nonrel uses 'deferred' for various things internally - e.g. for sending emails.

--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To post to this group, send email to google-a...@googlegroups.com.
To unsubscribe from this group, send email to google-appengi...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.


Jitender Bhatia

unread,
Jul 10, 2013, 4:04:59 AM7/10/13
to google-a...@googlegroups.com, bigmar...@gmail.com
Did you ever find any way to stop the tasks ?

Vinny P

unread,
Jul 10, 2013, 9:11:07 PM7/10/13
to google-a...@googlegroups.com
On Wed, Jul 10, 2013 at 3:04 AM, Jitender Bhatia <jitende...@metacube.com> wrote:
Did you ever find any way to stop the tasks ?

On Thursday, November 11, 2010 6:21:07 PM UTC+5:30, Ivan Uemlianin wrote:
We are running a very simple app on the appengine.  We're using django-
nonrel, but the app is not very complicated.

In particular, there seems to be no need to use the task queue, so I
have commented out the relevant line in our app.yaml

However, the logs show that the task queue is still active --- or
rather, it exists, but in a broken state: tasks pile up in the queue,
and 404s pile up in the logs
 
 
Hello Jitender,
 
Do you need to stop the task queue in general, or stop the task generation by django-nonrel?
 
If you need to stop the task queue, you can use the "Pause Queue" button in the Task Queue screen: http://imgur.com/7pHUWeO 
 
If you need to stop task generation by django-nonrel, you should know that django and miscellaneous plugins need to create tasks for their background work. If you need to figure out what parts of django are generating tasks, you can inspect the task's information by going to the queue information screen and clicking on an individual task. For example, here's a picture of one of my tasks: http://imgur.com/dFvpB1Y
 
-----------------
-Vinny P
Technology & Media Advisor
Chicago, IL

App Engine Code Samples: http://www.learntogoogleit.com
 
 


Reply all
Reply to author
Forward
0 new messages