MCPcopy Create free account
hub / github.com/MCSManager/MCSManager / ILifeCycleTask

Interface ILifeCycleTask

daemon/src/entity/instance/life_cycle.ts:3–8  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import Instance from "./instance";
2
3export interface ILifeCycleTask {
4 name: string; // task name
5 status: number; // Running status, the default is 0, the task manager will automatically change
6 start: (instance: Instance) => Promise<void>;
7 stop: (instance: Instance) => Promise<void>;
8}
9
10export class LifeCycleTaskManager {
11 // list of life cycle tasks

Callers

nothing calls this directly

Implementers 5

DockerStatsTaskdaemon/src/entity/commands/task/docker
TimeCheckdaemon/src/entity/commands/task/time.t
PingMinecraftServerTaskdaemon/src/entity/commands/task/mc_pla
OpenFrpTaskdaemon/src/entity/commands/task/openfr
InstanceDiskCheckTaskdaemon/src/entity/commands/task/any_st

Calls

no outgoing calls

Tested by

no test coverage detected