mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-13 05:12:55 -07:00
refactor: name non-process execution ID seed constant
This commit is contained in:
@@ -86,12 +86,14 @@ interface ExternalExecutionState extends ManagedExecutionBase {
|
|||||||
|
|
||||||
type ManagedExecutionState = VirtualExecutionState | ExternalExecutionState;
|
type ManagedExecutionState = VirtualExecutionState | ExternalExecutionState;
|
||||||
|
|
||||||
|
const NON_PROCESS_EXECUTION_ID_START = 2_000_000_000;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Central owner for execution backgrounding lifecycle across shell and tools.
|
* Central owner for execution backgrounding lifecycle across shell and tools.
|
||||||
*/
|
*/
|
||||||
export class ExecutionLifecycleService {
|
export class ExecutionLifecycleService {
|
||||||
private static readonly EXIT_INFO_TTL_MS = 5 * 60 * 1000;
|
private static readonly EXIT_INFO_TTL_MS = 5 * 60 * 1000;
|
||||||
private static nextExecutionId = 2_000_000_000;
|
private static nextExecutionId = NON_PROCESS_EXECUTION_ID_START;
|
||||||
|
|
||||||
private static activeExecutions = new Map<number, ManagedExecutionState>();
|
private static activeExecutions = new Map<number, ManagedExecutionState>();
|
||||||
private static activeResolvers = new Map<
|
private static activeResolvers = new Map<
|
||||||
@@ -162,7 +164,7 @@ export class ExecutionLifecycleService {
|
|||||||
this.activeResolvers.clear();
|
this.activeResolvers.clear();
|
||||||
this.activeListeners.clear();
|
this.activeListeners.clear();
|
||||||
this.exitedExecutionInfo.clear();
|
this.exitedExecutionInfo.clear();
|
||||||
this.nextExecutionId = 2_000_000_000;
|
this.nextExecutionId = NON_PROCESS_EXECUTION_ID_START;
|
||||||
}
|
}
|
||||||
|
|
||||||
static registerExecution(
|
static registerExecution(
|
||||||
|
|||||||
Reference in New Issue
Block a user