0
v-firecrawl/.github/workflows/clean-before-24h-complete-jobs.yml

21 lines
627 B
YAML
Raw Normal View History

name: Clean Before 24h Completed Jobs
on:
schedule:
- cron: '0 0 * * *'
2024-06-11 16:52:01 -04:00
env:
BULL_AUTH_KEY: ${{ secrets.BULL_AUTH_KEY }}
jobs:
clean-jobs:
runs-on: ubuntu-latest
steps:
- name: Send GET request to clean jobs
run: |
2024-06-11 16:52:01 -04:00
response=$(curl --write-out '%{http_code}' --silent --output /dev/null https://api.firecrawl.dev/admin/${{ secrets.BULL_AUTH_KEY }}/clean-before-24h-complete-jobs)
if [ "$response" -ne 200 ]; then
echo "Failed to clean jobs. Response: $response"
exit 1
fi
echo "Successfully cleaned jobs. Response: $response"