mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-18 21:45:31 +09:00
fix(api): stop exporting unused worker heartbeat symbols (#2334)
This commit is contained in:
1 parent
9f739427c4
commit
20cdfd3009
2 files changed
+2
-3
No files matched your search
@@ -3,9 +3,8 @@
|
|||||||
import {writeFileSync} from 'node:fs';
|
import {writeFileSync} from 'node:fs';
|
||||||
import type {ILogger} from '../ILogger';
|
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_WRITE_INTERVAL_MS = 5000;
|
||||||
export const WORKER_HEARTBEAT_MAX_AGE_MS = 30000;
|
|
||||||
export const WORKER_LANE_HEARTBEAT_INTERVAL_MS = 5000;
|
export const WORKER_LANE_HEARTBEAT_INTERVAL_MS = 5000;
|
||||||
export const WORKER_LANE_STALE_AFTER_MS = 30000;
|
export const WORKER_LANE_STALE_AFTER_MS = 30000;
|
||||||
export const WORKER_CRON_STALE_AFTER_MS = 90000;
|
export const WORKER_CRON_STALE_AFTER_MS = 90000;
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import type {ILogger} from '../ILogger';
|
|||||||
|
|
||||||
export type WorkerProcessErrorSource = 'uncaughtException' | 'unhandledRejection';
|
export type WorkerProcessErrorSource = 'uncaughtException' | 'unhandledRejection';
|
||||||
|
|
||||||
export type WorkerProcessErrorHandler = (source: WorkerProcessErrorSource, error: unknown) => Promise<void>;
|
type WorkerProcessErrorHandler = (source: WorkerProcessErrorSource, error: unknown) => Promise<void>;
|
||||||
|
|
||||||
interface WorkerProcessErrorHandlerOptions {
|
interface WorkerProcessErrorHandlerOptions {
|
||||||
logger: Pick<ILogger, 'error' | 'warn'>;
|
logger: Pick<ILogger, 'error' | 'warn'>;
|
||||||
|
|||||||
Reference in new issue
Block a user