Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥
TypeScript aiai-agentsai-crawlerai-scrapingai-searchcrawlerdata-extractionhtml-to-markdownllmmarkdownscraperscrapingweb-crawlerweb-dataweb-data-extractionweb-scraperweb-scrapingweb-searchwebscraping
added bull auth key
rafaelsideguide157fbe4a1ea6
diff --git a/.github/workflows/clean-before-24h-complete-jobs.yml b/.github/workflows/clean-before-24h-complete-jobs.ymlindex 2fd3b22f4..2ced53737 100644--- a/.github/workflows/clean-before-24h-complete-jobs.yml+++ b/.github/workflows/clean-before-24h-complete-jobs.yml@@ -3,13 +3,16 @@ on:schedule:- cron: '0 0 * * *'+env:+ BULL_AUTH_KEY: ${{ secrets.BULL_AUTH_KEY }}+jobs:clean-jobs:runs-on: ubuntu-lateststeps:- name: Send GET request to clean jobsrun: |- response=$(curl --write-out '%{http_code}' --silent --output /dev/null https://api.firecrawl.dev/clean-before-24h-complete-jobs)+ 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 ]; thenecho "Failed to clean jobs. Response: $response"exit 1diff --git a/apps/api/src/index.ts b/apps/api/src/index.tsindex eac82044c..cc8376bef 100644--- a/apps/api/src/index.ts+++ b/apps/api/src/index.ts@@ -164,7 +164,7 @@ app.get('/serverHealthCheck/notify', async (req, res) => {}});-app.get('/clean-before-24h-complete-jobs', async (req, res) => {+app.get(`/admin/${process.env.BULL_AUTH_KEY}/clean-before-24h-complete-jobs`, async (req, res) => {try {const webScraperQueue = getWebScraperQueue();const completedJobs = await webScraperQueue.getJobs(['completed']);