File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change 39
39
ENV GOOGLE_GENAI_USE_VERTEXAI=1
40
40
ENV GOOGLE_CLOUD_PROJECT={gcp_project_id}
41
41
ENV GOOGLE_CLOUD_LOCATION={gcp_region}
42
+ ENV IS_DEPLOY_TO_CLOUD_RUN=1
42
43
43
44
# Set up environment variables - End
44
45
Original file line number Diff line number Diff line change @@ -1103,7 +1103,7 @@ async def _get_a2a_runner_async() -> Runner:
1103
1103
logger .info ("Setting up A2A agent: %s" , app_name )
1104
1104
1105
1105
try :
1106
- if "K_SERVICE " in os .environ : # Indicating Cloud Run
1106
+ if "IS_DEPLOY_TO_CLOUD_RUN " in os .environ :
1107
1107
project_client = ProjectsClient ()
1108
1108
project_resource_path = project_client .get_project (name = f"projects/{ os .getenv ('GOOGLE_CLOUD_PROJECT' )} " ).name
1109
1109
project_number = project_resource_path .split ('/' )[- 1 ]
You can’t perform that action at this time.
0 commit comments