pterodactyl.ts
    Preparing search index...

    Class ScheduleTask

    Implements

    • ScheduleTaskAttributes
    Index

    Constructors

    Properties

    action: ScheduleActionType
    continue_on_failure: boolean
    created_at: Date
    id: number
    is_queued: boolean
    parentSchedule: Schedule
    payload: string
    sequence_id: number
    time_offset: number
    updated_at: Date

    Methods

    • Set the action type (and a new payload)

      Parameters

      • action: ScheduleActionType
      • Optionalpayload: string

      Returns Promise<void>

    • Update the continue_on_failure flag of the task

      Parameters

      • continueOnFailure: boolean

        The new continue_on_failure flag

      Returns Promise<void>

    • Update the payload of the task

      Parameters

      • payload: string

        The new payload

      Returns Promise<void>

    • Update the time_offset of the task

      Parameters

      • timeOffset: number

        The new time_offset

      Returns Promise<void>