mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-07-04 04:05:24 +08:00
Create check-redis.yml
This commit is contained in:
parent
3c3412e893
commit
2bcbe4f353
20
.github/workflows/check-redis.yml
vendored
Normal file
20
.github/workflows/check-redis.yml
vendored
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
name: Check Redis
|
||||||
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: '*/5 * * * *'
|
||||||
|
|
||||||
|
env:
|
||||||
|
BULL_AUTH_KEY: ${{ secrets.BULL_AUTH_KEY }}
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
clean-jobs:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Send GET request to check queues
|
||||||
|
run: |
|
||||||
|
response=$(curl --write-out '%{http_code}' --silent --output /dev/null --max-time 180 https://api.firecrawl.dev/admin/${{ secrets.BULL_AUTH_KEY }}/redis-health)
|
||||||
|
if [ "$response" -ne 200 ]; then
|
||||||
|
echo "Failed to check queues. Response: $response"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
echo "Successfully checked queues. Response: $response"
|
Loading…
x
Reference in New Issue
Block a user