File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -44,8 +44,14 @@ Run from the repository root, with a Temporal Cloud namespace and API key.
4444 --data-file=gcp/cloud-run/collector-config.yaml --project=" $PROJECT_ID "
4545 ```
4646
47- 2 . Build and push the image (tag ` REGION-docker.pkg.dev/PROJECT_ID/temporal-samples/cloud-run-worker:latest ` )
48- with ` docker build -f gcp/cloud-run/Dockerfile . ` .
47+ 2 . Create the Artifact Registry repo, then build and push the image:
48+
49+ ``` bash
50+ gcloud artifacts repositories create temporal-samples --repository-format=docker \
51+ --location=" $REGION " --project=" $PROJECT_ID "
52+ IMAGE=" $REGION -docker.pkg.dev/$PROJECT_ID /temporal-samples/cloud-run-worker:latest"
53+ docker build -f gcp/cloud-run/Dockerfile -t " $IMAGE " . && docker push " $IMAGE "
54+ ```
4955
50563 . Replace the placeholders in ` worker-pool.yaml ` , then deploy:
5157
@@ -57,9 +63,11 @@ The service account needs `roles/monitoring.metricWriter`, `roles/telemetry.trac
5763` roles/secretmanager.secretAccessor ` . Start a workflow on task queue ` cloud-run-worker ` :
5864
5965``` bash
60- temporal workflow start --type GreetingWorkflow --task-queue cloud-run-worker \
66+ temporal workflow execute --type GreetingWorkflow --task-queue cloud-run-worker \
6167 --workflow-id cloud-run-greeting --input ' "Google Cloud"'
6268```
6369
70+ It prints ` Hello Google Cloud! ` , confirming the deployed worker ran the task.
71+
6472The collector does ** not** batch cumulative metrics: a shutdown flush batched with a recent periodic
6573export would collide on the same Prometheus series and be rejected as ` Duplicate TimeSeries ` .
You can’t perform that action at this time.
0 commit comments