Skip to content

Commit deaf672

Browse files
authored
Fix github outage (postcommit checks are stuck) (#6897)
1 parent 8c7a652 commit deaf672

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/gate_postcommits.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ jobs:
1717
jq '[.workflow_runs[] | {name,status,id,updated_at,"waiting_seconds":(now - (.updated_at | fromdate)), html_url}]' | \
1818
jq '[.[] | select(.waiting_seconds > 600)] | length')
1919
echo "Queue size: $queue_size"
20-
if (( queue_size > 0 ));then
20+
# temporary solution for https://www.githubstatus.com/incidents/m70hk23gx3nx (some workflows are uncancellable stuck)
21+
if (( queue_size > 10 ));then
2122
echo "Close gate for postcommits"
2223
query='.runners[] | select(.labels[].name=="ghrun") | select( any([.labels[].name][]; .=="postcommit")) | .id'
2324
else

0 commit comments

Comments
 (0)