Is there a way to dispatch a task only after the previous task is completed, while using google cloud tasks?

Solution 1:

You can use the Cloud Task rate limit feature on your task queue. Set it to 1 to dispatch only one task at a time.