tq

command
Version: v0.0.0-...-51f9457 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 9, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

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.

Source Files

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL