aboutsummaryrefslogtreecommitdiff
path: root/internal/queue/queue.go
diff options
context:
space:
mode:
authorJonathan Amsterdam <jba@google.com>2020-08-27 11:47:57 -0400
committerJonathan Amsterdam <jba@google.com>2020-08-27 16:59:46 +0000
commit4486b69e8b23a8b6f667cf7a43b8ed776ef5ebf2 (patch)
tree118195bb73a27dc0def93bf298896d6682274956 /internal/queue/queue.go
parent3e7bb508771f9cf630a1a44fd9988cc1c32cfce4 (diff)
downloadgo-x-pkgsite-4486b69e8b23a8b6f667cf7a43b8ed776ef5ebf2.tar.xz
many: use OnGCP instead of OnAppEngine
Where it makes sense, call the new Config.OnGCP function to determine if we're running anywhere in GCP (AppEngine or GKE). Change-Id: I1efee29b0c32f9d4818d1a7514b44ae65d7aa252 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/251059 Reviewed-by: Julie Qiu <julie@golang.org> Run-TryBot: Julie Qiu <julie@golang.org> TryBot-Result: kokoro <noreply+kokoro@google.com>
Diffstat (limited to 'internal/queue/queue.go')
-rw-r--r--internal/queue/queue.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/queue/queue.go b/internal/queue/queue.go
index 0b042819..2cde9847 100644
--- a/internal/queue/queue.go
+++ b/internal/queue/queue.go
@@ -32,7 +32,7 @@ type Queue interface {
// New creates a new Queue with name queueName based on the configuration
// in cfg. When running locally, Queue uses numWorkers concurrent workers.
func New(ctx context.Context, cfg *config.Config, queueName string, numWorkers int, db *postgres.DB, processFunc inMemoryProcessFunc) (Queue, error) {
- if !cfg.OnAppEngine() {
+ if !cfg.OnGCP() {
experiments, err := db.GetExperiments(ctx)
if err != nil {
return nil, err