Scheduling: the mechanism Scheduler implements.
API
@Interface()
export abstract class Scheduling {
abstract readonly files: Opaque<"ScheduleFileCache">;
abstract start(): Promise<void>;
abstract stop(): void;
abstract tickOnce(): Promise<void>;
abstract reconcileAgent(projectId: string, agentId: string): Promise<void>;
abstract listAgent(
projectId: string,
agentId: string,
): Promise<{ entries: ScheduleEntry[]; invalid: Array<{ name: string; error: string }> }>;
abstract listProject(projectId: string): Promise<{
entries: Array<ScheduleEntry & { agentId: string }>;
invalid: Array<{ agentId: string; name: string; error: string }>;
}>;
abstract dropEntry(projectId: string, agentId: string, name: string): void;
}Contract Topology
Static AST wiring across @Module / @Provide / @UseMembers (8)
files
readonly files: Opaque<"ScheduleFileCache">The runtime's schedule-file cache (the server's ScheduleFileCache class, compared by name).
start
start(): Promise<void>@returns
Promise<void>stop
stop(): void@returns
voidtickOnce
tickOnce(): Promise<void>@returns
Promise<void>reconcileAgent
reconcileAgent(projectId: string, agentId: string): Promise<void>@paramprojectId
string@paramagentId
string@returns
Promise<void>listAgent
listAgent(projectId: string, agentId: string): Promise<{ entries: ScheduleEntry[]; invalid: Array<{ name: string; error: string }> }>@paramprojectId
string@paramagentId
string@returns
Promise<{ entries: ScheduleEntry[]; invalid: Array<{ name: string; error: string }> }>listProject
listProject(projectId: string): Promise<{ entries: Array<ScheduleEntry & { agentId: string }>; invalid: Array<{ agentId: string; name: string; error: string }>; }>@paramprojectId
string@returns
Promise<{ entries: Array<ScheduleEntry & { agentId: string }>; invalid: Array<{ agentId: string; name: string; error: string }>; }>dropEntry
dropEntry(projectId: string, agentId: string, name: string): void@paramprojectId
string@paramagentId
string@paramname
string@returns
void