music nerd

ResearchRun the research scheduler

Research

Run the research scheduler

The scheduler Vercel Cron calls. Takes slices until its time budget runs out (the function's 60 s limit, less a reserve), skipping jobs that are waiting on an outside run. Requires Authorization: Bearer <CRON_SECRET> when the deployment sets CRON_SECRET.

GET/api/research/advance
GET/api/research/advance

The scheduler Vercel Cron calls. Takes slices until its time budget runs out (the function's 60 s limit, less a reserve), skipping jobs that are waiting on an outside run. Requires Authorization: Bearer <CRON_SECRET> when the deployment sets CRON_SECRET.

Authorization

Authorizationstringrequired

The deployment's CRON_SECRET. Kept in this tab only.

cURL
curl --request GET \
  --url 'https://musicnerd-api.vercel.app/api/research/advance'

Send the request to see the live response here.

Authorizations

Authorizationstringheaderrequired

Bearer authentication header of the form Bearer <token>. The deployment's CRON_SECRET.

Response

application/json

The slices that ran this tick.

statusstring · enumrequired

Values: "ok", "error"

ranbooleanrequired
slicesarray<object>required
Item properties for slices
ranboolean

Whether a slice ran. false means nothing was claimable.

jobIdstring

The job the slice belonged to.

format: uuid

kindstring · enum

The job's kind.

Values: "social_ingest", "caption_extract", "lore_refresh", "source_search", "latest_refresh"

artistIdstring

format: uuid

progressstring

A short description of what the slice did.

doneboolean

Whether the job finished with this slice.

waitingboolean

The job is waiting on an outside run (an Apify scrape); call again later.