How to emulate Google cloud tasks service locally in app engine flex (Python 3.7)?
Asked Answered
U

3

9

I have been using Google App Engine Standard Environment(Python 2.7) since some days now. It provides a good local development server, providing Task queues, datastore and other services locally.

Recently i have been exploring App Engine Flex Environment (Python 3.7) for some of the projects. Within that i am trying use various services like Cloud Tasks, GCS, Pubsub etc. Some of the services like pubsub has an emulator to run it locally. I couldn't find such emulator for cloud tasks.

Is there any way to emulate/simulate Cloud Tasks locally?

Uralite answered 24/4, 2019 at 7:16 Comment(0)
B
9

I just built an emulator, see if it meets your needs.

Borlase answered 17/1, 2020 at 8:50 Comment(0)
B
2

Unfortunately, local server emulator is not available for App Engine Flex Environment (Python 3.7) [1] However you can use Cloud Pub/Sub in some cases as workaround [2].


[1] https://cloud.google.com/tasks/docs/migrating#features_in_task_queues_not_yet_available_via

[2] https://cloud.google.com/tasks/docs/comp-pub-sub

Bushtit answered 2/5, 2019 at 8:50 Comment(0)
D
0

I built an in-process emulator for Python development.

See also some emulators that run in a separate process in localhost: Potato London’s gcloud-tasks-emulator and Aert van de Hulsbeek’s cloud-tasks-emulator, mentioned in the answer above.

Dichroscope answered 9/8, 2020 at 12:11 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.