Skip to content

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

Delete autoscale.yml

Nicolas4e196a9146b2
diff --git a/.github/workflows/autoscale.yml b/.github/workflows/autoscale.yml
deleted file mode 100644
index 694c8cac8..000000000
--- a/.github/workflows/autoscale.yml
+++ /dev/null
@@ -1,36 +0,0 @@
-name: Simple Autoscaler
-on:
- schedule:
- - cron: '* * * * *'
-
-env:
- BULL_AUTH_KEY: ${{ secrets.BULL_AUTH_KEY }}
- FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
-
-jobs:
- scale:
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v3
- - uses: superfly/flyctl-actions/setup-flyctl@master
- - name: Send GET request to check queues
- run: |
- response=$(curl --silent --max-time 180 https://api.firecrawl.dev/admin/${{ secrets.BULL_AUTH_KEY }}/autoscaler)
- http_code=$(echo "$response" | jq -r '.status_code')
-
- mode=$(echo "$response" | jq -r '.mode')
- count=$(echo "$response" | jq -r '.count')
-
- echo "Mode: $mode"
- echo "Count: $count"
-
- if [ "$mode" = "scale-descale" ]; then
- flyctl scale count $count -c fly.staging.toml --process-group=worker --yes
- echo "Scaled to $count machines."
- else
- echo "No scaling needed. Mode: $mode"
- fi
- env:
- FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
- BULL_AUTH_KEY: ${{ secrets.BULL_AUTH_KEY }}
- working-directory: apps/api