UNPKG

trigger.dev

Version:

A Command-Line Interface for Trigger.dev projects

13 lines (12 loc) • 616 B
export type OomKillCounterPaths = { procSelfCgroup: string; cgroupRoot: string; }; /** This process's own cgroup (cgroup v2), which a forked child shares. */ export declare const OWN_CGROUP_OOM_KILL_COUNTER: OomKillCounterPaths; /** * How many processes the kernel's out-of-memory killer has killed in the cgroup `paths` name, or * undefined when the read takes longer than `timeoutMs` or there is no such counter: cgroup v1, a * non-Linux host, or a file that cannot be read. */ export declare function readOomKillCountWithin(paths: OomKillCounterPaths, timeoutMs: number): Promise<number | undefined>;