Search code examples
pythongoogle-app-engineflaskgoogle-app-engine-pythonapp-engine-flexible

Does Google AppEngine PYTHON flexible Environment support task queues?


I have been long using GAE STANDARD with webApp2. It has great support and documentation for task queues. But now I just started using Python FLASK with Google AppEngine FLEXIBLE, I could not find any clear documentation for task queues, as compared to the documentation and support for Task Queues in GAE Standard. If task queues are supported, or any one has used them please share the links or documentation which may be helpful. Secondly if any alternative or better way for background tasks i.e Celery etc in your opinion? Any opinions would be highly helpful.


Solution

  • From Task Queues in Migrating Services from the Standard Environment to the Flexible Environment:

    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.