Reputation: 70
I have created a Push Queue in Google App Engine Task Queue.
Queue Name : default Task Name : [Auto-generated]
I am trying to call this Task Queue from Google Cloud Functions, wasn't able to find out how this will work.
Upvotes: 1
Views: 1826
Reputation: 39824
Since Cloud Functions aren't running inside standard env GAE you won't be able to use the task queue. Some possible alternatives to consider are mentioned in Task Queue:
The Task Queue service has limited availability outside of the standard environment. If you want to use the service outside of the standard environment, you can sign up for the Cloud Tasks alpha.
Outside of the standard environment, you can't add tasks to push queues, but a service running in the flexible environment can be the target of a push task. You can specify this using the
target
parameter when adding a task to queue or by specifying the defaulttarget
for the queue inqueue.yaml
.In many cases where you might use pull queues, such as queuing up tasks or messages that will be pulled and processed by separate workers, Cloud Pub/Sub can be a good alternative as it offers similar functionality and delivery guarantees.
Upvotes: 4