Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Cloud Run max timeout is now 1 day instead of 1 hour. Relaxing the va…
Browse files Browse the repository at this point in the history
…lidation to allow for that.
  • Loading branch information
JohnLemmonMedely committed Jan 18, 2024
1 parent 4229eda commit 16a1fc8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion prefect_gcp/cloud_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ class CloudRunJob(Infrastructure):
timeout: Optional[int] = Field(
default=600,
gt=0,
le=3600,
le=86400,
title="Job Timeout",
description=(
"The length of time that Prefect will wait for a Cloud Run Job to complete "
Expand Down
4 changes: 2 additions & 2 deletions prefect_gcp/workers/cloud_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ class CloudRunWorkerJobConfiguration(BaseJobConfiguration):
timeout: Optional[int] = Field(
default=600,
gt=0,
le=3600,
le=86400,
title="Job Timeout",
description=(
"The length of time that Prefect will wait for a Cloud Run Job to complete "
Expand Down Expand Up @@ -497,7 +497,7 @@ class CloudRunWorkerVariables(BaseVariables):
timeout: Optional[int] = Field(
default=600,
gt=0,
le=3600,
le=86400,
title="Job Timeout",
description=(
"The length of time that Prefect will wait for Cloud Run Job state changes."
Expand Down

0 comments on commit 16a1fc8

Please sign in to comment.