Cyril N.
Cyril N.

Reputation: 39899

Google AppEngine use Google Compute for Task?

I need to run some specific code that can't be run on Google AppEngine (because of restrictions).

Since these workers are asynchronous, I thought about launching a Compute instance every time I need it and connecting them via a specific Tasks via the Task Queue from Google AppEngine, but I can not find any documentation about if this is possible?

TL;DR: Is it possible to specify a Google Compute as instance for a Task queue?

Upvotes: 0

Views: 51

Answers (1)

Dan Cornilescu
Dan Cornilescu

Reputation: 39834

No, there is no way to specify a Google Compute as instance for a Task queue.

But did you consider using the Flexible environment (eventually with a custom runtime to try to address the restrictions) instead? Or the alternatives suggested for the Flexible env (only has limited task queue support) From 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 default target for the queue in queue.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: 2

Related Questions