
Run
CertifiedEnterprise EditionRun an existing Google Cloud Run Job
Run
Certified
Enterprise Edition
Run an existing Google Cloud Run Job
yaml
type: io.kestra.plugin.ee.gcp.cloudrun.RunExamples
yaml
id: cloud_run_run_existing_job
namespace: company.team
inputs:
- id: gcp_region
type: STRING
defaults: europe-west1
- id: job_name
type: STRING
defaults: prod-etl-job
tasks:
- id: run_existing_job
type: io.kestra.plugin.ee.gcp.cloudrun.Run
projectId: "{{ secret('GCP_PROJECT_ID') }}"
region: "{{ inputs.gcp_region }}"
jobName: "{{ inputs.job_name }}"
serviceAccount: "{{ secret('GOOGLE_SA') }}"
wait: true
completionCheckInterval: PT10S
yaml
id: cloud_run_run_with_overrides
namespace: company.team
tasks:
- id: run_existing_job
type: io.kestra.plugin.ee.gcp.cloudrun.Run
projectId: "{{ secret('GCP_PROJECT_ID') }}"
region: europe-west1
jobName: prod-etl-job
serviceAccount: "{{ secret('GOOGLE_SA') }}"
containerEnvironment:
RUN_ID: "{{ execution.id }}"
ENVIRONMENT: prod
- id: log_result
type: io.kestra.plugin.core.log.Log
message: "Execution {{ outputs.run_existing_job.executionName }} finished with state {{ outputs.run_existing_job.state }}"
yaml
id: cloud_run_scheduled_fire_and_forget
namespace: company.team
triggers:
- id: nightly
type: io.kestra.plugin.core.trigger.Schedule
cron: "0 2 * * *"
tasks:
- id: run_existing_job
type: io.kestra.plugin.ee.gcp.cloudrun.Run
projectId: "{{ secret('GCP_PROJECT_ID') }}"
region: europe-west1
jobName: nightly-batch-job
serviceAccount: "{{ secret('GOOGLE_SA') }}"
wait: false
Properties
jobName *Requiredstring
region *Requiredstring
completionCheckInterval string
Default
PT5ScontainerArgs array
SubTypestring
containerEnvironment object
impersonatedServiceAccount string
pluginDefaultsRef Non-dynamicstring
projectId string
scopes array
SubTypestring
Default
["https://www.googleapis.com/auth/cloud-platform"]serviceAccount string
taskCount integerstring
wait booleanstring
Default
trueOutputs
executionName string
startedAt string
Format
date-timestate string
stoppedAt string
Format
date-time