Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Custom Task Queue in App Engine?

I have created a new task queue and defined it in queue.yaml

I am not sure how to start adding tasks to this queue?

with the default queue it is simple taskqueue.add(...)

how do we do it for a custom queue?

like image 899
demos Avatar asked Dec 29 '22 15:12

demos


1 Answers

You may specify which queue to add a task to by passing a queue_name parameter (documentation). queue_name defaults to "default". Example:

 taskqueue.Task(url='...', params={...}).add(queue_name='my_custom_queue')
like image 159
David Underhill Avatar answered Jan 13 '23 13:01

David Underhill