Is it possible to simulate a Google Cloud Task locally?

1.8k Views Asked by At

I'm working on a Cloud Run docker application that handles a few long-running data integration processes.

I'm struggling to come up with a way to locally run/test my submissions to Cloud Tasks before actually deploying the container to Cloud Run.

Is there any way to do this?

2

There are 2 best solutions below

0
On BEST ANSWER

A local emulator for Cloud Tasks is not available yet, in some cases you can substitute Cloud Tasks with Pub/Sub. Also, consider to use non Google solutions such as Cloud-Tasks-In-Process-Emulator, gcloud-tasks-emulator 0.5.1 or Cloud tasks emulator.

1
On

As I can understand you want to test the cloud task locally! Yes it is possible by using ngrok. By using ngrok you can access your local application on public and for cloud task you need the public url for handling task.