You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: runner-autoscaler/README.md
+1
Original file line number
Diff line number
Diff line change
@@ -34,6 +34,7 @@ The scaler is configured via the following environment variables:
34
34
| PROJECT_ID | "" | The Google Cloud Project Id. |
35
35
| ZONE | "" | The Google Cloud zone where the VM instance will be created. |
36
36
| TASK_QUEUE | "" | The relative resource name of the Cloud Task queue. |
37
+
| CREATE_VM_DELAY | "10" | The delay in seconds to wait before the VM is created. Useful for skipping the VM creation if the workflow job is canceled by the user shortly afterwards. |
37
38
| INSTANCE_TEMPLATE | "" | The relative resource name of the instance template from which the VM instance will be created. |
38
39
| SECRET_VERSION | "" | The relative resource name of the secret version which contains the PAT or PAT classic. |
39
40
| RUNNER_PREFIX | "runner" | Prefix for the the name of a new VM instance. A random string (10 random lower case characters) will be added to make the name unique: "<prefix>-<random_string>". |
log.Warnf("Webhook requested to start a runner that is missing the label(s) \"%s\" - ignoring", strings.Join(missingLabels, ", "))
663
680
}
681
+
} elseifpayload.Action==WAITING {
682
+
// the waiting action happens if a deployment environment is configured in the workflow that requires a review. We have to cancel the cloud task callback
683
+
ifok, missingLabels:=payload.Job.HasAllLabels(s.conf.RunnerLabels); ok {
0 commit comments