Skip to content
← Public packages

@kody/kody-factory

Forkable multi-project software factory: signals, priority queue, project UI, sweep job. Agent runners and Sentry reach it by events.

FollowFork

Files

health-sweep.ts

17 lines · 584 B · TypeScript
import { healthSweep } from '../health/sweep.ts'

/**
 * Job entry: factory health sweep, every 30 minutes (`health-sweep` in
 * package.json). Picks up queued fingerprints an event sweep missed and
 * recovers stale wakes. Reconcile and wakes follow their own switches, so a
 * run with every switch off only refreshes health signals.
 *
 * @returns Sweep summary
 *
 * @example
 * import healthSweepJob from 'kody:@kody/kody-factory/jobs/health-sweep'
 * await healthSweepJob()
 */
export default async function healthSweepJob() {
	return healthSweep({ limit: 3, source: 'job' })
}