File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 7979 github.event_name == 'push' ||
8080 github.event_name == 'pull_request_target' ||
8181 (github.event_name == 'schedule' && github.repository == 'apache/beam') ||
82+ github.event_name == 'workflow_dispatch' ||
8283 startsWith(github.event.comment.body, 'Run Job With Matrix')
8384 steps:
8485 - uses: actions/checkout@v3
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ name: Cleanup Dataproc Resources
1717
1818on :
1919 schedule :
20- - cron : ' 0 */6 * * *'
20+ - cron : ' 0 0 * * *'
2121 workflow_dispatch :
2222
2323# Setting explicit permissions for the action to avoid the default permissions which are `write-all` in case of pull_request_target event
Original file line number Diff line number Diff line change @@ -44,8 +44,8 @@ function filterClusters(){
4444
4545 elapsedHours=$(( ($currentDate - $clusterStartTime )/ 3600 ))
4646
47- # Most of the jobs commonly finish in less than one hour
48- if [[ $elapsedHours -ge 2 ]]; then
47+ # teardown clusters >= 6 hr old
48+ if [[ $elapsedHours -ge 6 ]]; then
4949 for name in ${generatedResources[@]} ; do
5050 # Only resources generated by the groovy jobs set are queued for deletion
5151 if [[ " $cluster " == * ${name} * && ! (" $cluster " =~ nokill) ]]; then
You can’t perform that action at this time.
0 commit comments