Skip to content

Latest commit

 

History

History
42 lines (29 loc) · 1.34 KB

File metadata and controls

42 lines (29 loc) · 1.34 KB

App Engine Task Handler

This project is a getting starter guide for working with App Engine task handlers in Go.

Download template locally with gonew

  • Install gonew if you have not already.
go install golang.org/x/tools/cmd/gonew@latest
  • Download this template locally:
gonew github.com/GoogleCloudPlatform/go-templates/appengine/taskhandler your.domain/taskhandler

Deploy

# The name of the Cloud Task queue the handler will receive message from
EXPORT AE_QUEUE=ae-queue

# Deploy the app to App Engine
gcloud app deploy

# Create the Cloud Task queue
gcloud tasks queues create $AE_QUEUE

# Connect the Cloud Task queue to the App Engine handler endpoint
gcloud tasks create-app-engine-task hello --queue=$AE_QUEUE --relative-uri=/task_handler --body-content="a friendly hello"

Resources