Files
oneuptime/Probe/SyntheticRunner/Config.ts
Nawaz Dhandala 4b05546c94 feat: Implement Synthetic Monitor Runner Service
- Added a new service for executing synthetic monitor scripts.
- Introduced API endpoint for running synthetic monitors.
- Created configuration for synthetic monitor execution parameters.
- Implemented execution logic with retry mechanisms and timeout handling.
- Added support for multiple browser types and screen sizes.
- Integrated logging and error handling for better observability.
- Established child process management for executing scripts in isolation.
- Updated docker-compose configuration to include the new service.
2026-03-12 08:20:54 +00:00

29 lines
808 B
TypeScript

import NumberUtil from "Common/Utils/Number";
import Port from "Common/Types/Port";
export const PORT: Port = new Port(
NumberUtil.parseNumberWithDefault({
value: process.env["PORT"],
defaultValue: 3885,
min: 1,
}),
);
export const SYNTHETIC_MONITOR_SCRIPT_TIMEOUT_IN_MS: number =
NumberUtil.parseNumberWithDefault({
value: process.env["PROBE_SYNTHETIC_MONITOR_SCRIPT_TIMEOUT_IN_MS"],
defaultValue: 60000,
min: 1,
});
export const SYNTHETIC_MONITOR_RETRY_DELAY_IN_MS: number = 1000;
export const SYNTHETIC_MONITOR_ATTEMPT_PADDING_IN_MS: number = 30000;
export const SYNTHETIC_MONITOR_CHILD_USER_ID: number = 1000;
export const SYNTHETIC_MONITOR_CHILD_GROUP_ID: number = 1000;
export const SYNTHETIC_MONITOR_CHILD_HOME_DIR: string =
"/tmp/oneuptime-synthetic-runner";