Skip to content

Commit 588e611

Browse files
committed
Update keep-render-alive workflow to change cron schedule and enhance curl command verbosity
1 parent cf3917b commit 588e611

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/keep-render-alive.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,12 @@ name: Keep Render Services Alive
22

33
on:
44
schedule:
5-
- cron: '*/1 * * * *'
6-
5+
- cron: '*/2 * * * *'
6+
push:
7+
branches:
8+
- main
9+
- master
10+
711
jobs:
812
ping-services:
913
runs-on: ubuntu-latest
@@ -13,14 +17,14 @@ jobs:
1317
curl -X POST https://codebrewery-api-gateway.onrender.com/execute \
1418
-H "Content-Type: application/json" \
1519
-d '{"language":"python","code":"print(\"Keeping service alive\")"}' \
16-
|| echo "API Gateway ping sent"
20+
-v || echo "API Gateway ping sent"
1721
1822
- name: Ping Code Execution Service
1923
run: |
2024
curl -X POST https://codebrewery-code-execution-service.onrender.com/execute \
2125
-H "Content-Type: application/json" \
2226
-d '{"language":"python","code":"print(\"Keeping service alive\")"}' \
23-
|| echo "Code Execution Service ping sent"
27+
-v || echo "Code Execution Service ping sent"
2428
2529
- name: Timestamp
2630
run: echo "Services pinged at $(date)"

0 commit comments

Comments
 (0)