luci: go.chromium.org/luci/examples/appengine/tq Files | Directories

Command tq

Demo of server/tq module on Appengine.

It can also run locally, but it needs real Cloud Datastore, so you'll need to provide some Cloud Project name. Note that it will create real entities there which may interfere with the production server/tq deployment in this project, so use some experimental Cloud Project for this:

$ go run . -cloud-project your-experimental-project
$ curl http://127.0.0.1:8800/count-down/10
<observe logs>
$ curl http://127.0.0.1:8800/internal/tasks/c/sweep
<observe logs>

To test this for real, deploy the GAE app:

$ gae.py upload -A your-experimental-project --switch
$ curl https://<your-experimental-project>.appspot.com/count-down/10
<observe logs>

Again, be careful with what Cloud Project you are updating.

Package Files

main.go

Directories

PathSynopsis
taskspb

Package main imports 16 packages (graph). Updated 2020-09-30. Refresh now. Tools for package owners.