Skip to content

Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥

Create check-redis.yml

Nicolas2bcbe4f35362
diff --git a/.github/workflows/check-redis.yml b/.github/workflows/check-redis.yml
new file mode 100644
index 000000000..e5e9ff0d7
--- /dev/null
+++ b/.github/workflows/check-redis.yml
@@ -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"