Skip to content

Commit 0a0e323

Browse files
committed
ci: keepalive action — 10min cron to prevent cold starts
1 parent 8e37dec commit 0a0e323

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

.github/workflows/keepalive.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Synapse Keepalive Ping
2+
on:
3+
schedule:
4+
- cron: '*/10 * * * *' # A cada 10 minutos
5+
jobs:
6+
ping:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Run keepalive pings
10+
run: |
11+
sleep $((RANDOM % 60))
12+
for url in "https://forge.synapselayer.org/api/health" "https://forge.synapselayer.org/api/ping" "https://forge.synapselayer.org/api/mcp"; do
13+
curl -s -m 30 "$url" -H "User-Agent: SynapseKeepAlive/1.0" || true
14+
done

0 commit comments

Comments
 (0)