Skip to main content

Function: refreshPipeline()

refreshPipeline(): Promise<PipelineRefreshResult>

Defined in: src/server/actions/pipeline.ts:961

Admin-triggered pipeline refresh (the UI's "Refresh pipeline" button) — the same flow as the daily cron, but gated by the admin session instead of the cron secret: expire stale signals → ingest from configured sources (CareerOneStop; none when unconfigured) → recompute + recalibrate every facility score → run the cadence engine (auto-enroll triggered prospects + heal tasks). Manual signals still come from scripts/ingest-job-signals.mjs.

Returns

Promise<PipelineRefreshResult>