Skip to content

Commit 1a04ebb

Browse files
pubsublite: lifecycle config during cluster creation (GoogleCloudPlatform#7934)
* pubsublite: lifecycle config in cluster creation * use snake case in config * format Duration
1 parent 34f0d06 commit 1a04ebb

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎pubsublite/spark-connector/spark_streaming_test.py‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,10 @@ def dataproc_cluster() -> Generator[dataproc_v1.Cluster, None, None]:
134134
"https://www.googleapis.com/auth/cloud-platform",
135135
],
136136
},
137+
"lifecycle_config": {
138+
# Schedule cluster deletion after 2 hours of inactivity.
139+
"idle_delete_ttl": {"seconds": 3600},
140+
},
137141
},
138142
}
139143

0 commit comments

Comments
 (0)