Skip to content

Scheduled Task Model

class ScheduleActionType(Enum)

Scheduled Task Action

Enum ItemEnum ValueDescription
COMMANDcommandSend command
DELAYdelayWait x seconds
STOPstopStop instance
STARTstartStart instance
RESTARTrestartRestart instance
KILLkillForce stop instance

class ScheduleType(IntEnum)

Schedule Task Type

Enum ItemEnum ValueDescription
INTERVAL1Interval Task
CYCLE2Periodic task
SPECIFY3Scheduled task

class ScheduleAction(BaseModel)

Scheduled Action

Field NameTypeDescription
typeScheduleActionTypeAction Type
payloadstrAction Parameters

class SchedulePostBody(BaseModel)

Scheduled Task Configuration Parameters

Field NameTypeDescription
namestrScheduled task name
countintExecution count, -1 indicates infinite
timestrAll fields are rcon strings except interval time tasks (seconds)
actionslist[ScheduleAction]Action chain for the scheduled task
typeScheduleTypeType of the scheduled task

class ScheduleDetail(SchedulePostBody)

Scheduled Task Information

Field NameTypeDescription
instanceUuidstrInstance UUID
daemonIdstrNode ID

method delete(self)

Delete Scheduled Task

Returns

  • bool: Returns True if deletion succeeds

method update(self, config: SchedulePostBody)

Update Scheduled Task

Parameters

  • config: Scheduled task configuration

Returns

  • bool: Returns True if operation succeeds

Released under the MIT License.