8

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?

Vishnu gondlekar
  • 3,896
  • 21
  • 35

3 Answers3

5

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

Aert
  • 1,989
  • 2
  • 15
  • 17
3

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

Jaroslav
  • 724
  • 4
  • 17
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.

Joshua Fox
  • 18,704
  • 23
  • 87
  • 147