fix(api): stop exporting unused worker heartbeat symbols (#2334)

This commit is contained in:
Hampus authored and GitHub committed 2026-09-01 21:03:26 +02:00
1 parent 9f739427c4
commit 20cdfd3009
2 files changed
+2 -3

No files matched your search

+1 -2
View File
@@ -3,9 +3,8 @@
import {writeFileSync} from 'node:fs';
import type {ILogger} from '../ILogger';
export const WORKER_HEARTBEAT_PATH = '/tmp/fluxer-worker-heartbeat';
const WORKER_HEARTBEAT_PATH = '/tmp/fluxer-worker-heartbeat';
export const WORKER_HEARTBEAT_WRITE_INTERVAL_MS = 5000;
export const WORKER_HEARTBEAT_MAX_AGE_MS = 30000;
export const WORKER_LANE_HEARTBEAT_INTERVAL_MS = 5000;
export const WORKER_LANE_STALE_AFTER_MS = 30000;
export const WORKER_CRON_STALE_AFTER_MS = 90000;
@@ -6,7 +6,7 @@ import type {ILogger} from '../ILogger';
export type WorkerProcessErrorSource = 'uncaughtException' | 'unhandledRejection';
export type WorkerProcessErrorHandler = (source: WorkerProcessErrorSource, error: unknown) => Promise<void>;
type WorkerProcessErrorHandler = (source: WorkerProcessErrorSource, error: unknown) => Promise<void>;
interface WorkerProcessErrorHandlerOptions {
logger: Pick<ILogger, 'error' | 'warn'>;