Search code examples
pythongoogle-app-enginetask-queue

how to programatically pause a gae taskqueue from python?


The basic idea is:

import google
default_queue = google.appengine.api.taskqueue.Queue()
default_queue.pause()  # there seems to be no function to do this
do_some_stuff()
default_queue.unpause() # or this

So how can I pause and unpause the task queue?


Solution

  • I ended up creating a pull queue and my own worker that I can pause and unpause