Skip to content

Using Schedules+

Build schedules from steps, use variables, triggers and conditions, read the calendar and run history, and import, export or copy schedules.

7 min readUpdated
On this page11 sections

Open a server and choose Schedules. Every schedule is a card with its colour, when it runs, its steps and conditions, the next and last run and a switch to turn it on or off. While a schedule runs, its card shows the current step, a progress bar and a Stop button.

Use List and Calendar at the top to switch views. The ⋯ menu has Import JSON, Export all and Copy to other servers.

Creating a schedule

Click New schedule and pick a preset, or Blank schedule to start from scratch. The filters at the top show presets for Any game, Minecraft, Rust, ARK, Valheim and Discord, and presets that match your server are marked For this server. See the Preset library for all of them.

The preset opens in the editor. Change the name, the steps or the time, then click Create schedule. Nothing is saved before that.

The editor

The top bar has All schedules, the name, the Enabled switch, Run now, Stop while a run is in progress, and Save. The tabs below are Steps, Trigger, Conditions, Settings and History. When you leave with unsaved changes, the Panel asks before discarding them.

If something can't be saved, the message at the top says how many fields need attention, the tab turns red and the field is marked with the reason.

Steps

Steps run from top to bottom. Click Add step to pick one, drag a step by its handle to move it, or drop it into an If / Else branch. Click a step to open or collapse it. Collapsed steps show a short summary, such as the command or the countdown times.

StepWhat it does
Send commandTypes a command into the console, for example save-all flush. The server must be online.
Power actionStarts, stops, restarts or kills the server. Starting a server that is already on is skipped.
Create backupTakes a backup, optionally locked so rotation never deletes it. It can wait until the backup is finished, rotate out the oldest unlocked backup when the limit is reached, and skip the backup or delete the oldest one first when the disk is almost full.
CountdownAnnounces in chat at the times you pick (1h, 30m, 15m, 10m, 5m, 2m, 1m, 30s, 10s and 5s) and ends when it reaches zero. {time} in the message becomes the time left, such as "5 minutes".
WaitPauses for seconds, minutes or hours.
Wait for serverWaits until the server is online, offline, starting or stopping. After a restart it waits for the new process.
Wait for console outputWaits until a line with your text or regular expression appears in the console, for example Saved the game after save-all flush.
If / ElseChecks conditions and runs the steps under Then run or Otherwise run.
Run scheduleStarts another schedule of the same server and can wait until it finishes.
Discord messagePosts a message or an embed through a webhook, always, only when an earlier step failed or only when none did.
HTTP requestCalls a URL with GET, POST, PUT, PATCH or DELETE, your headers and a body, for example to set a status page to maintenance before a restart.
File actionDeletes, moves or compresses files in a folder by name pattern and age, for example *.log.gz in /logs older than 14 days, or the DIM1 folder of the world.
Change startup variableSets a startup variable you may edit. It applies the next time the server starts.
Other server actionSends a command or a power action to another server of yours, or runs one of its schedules, for example to warn a proxy before a restart.

Every step has Continue if this fails, Retries with a Retry delay, an optional label, an on and off switch, Duplicate and Remove.

Variables

Click Insert a variable under a field to add one. They are filled in when the step runs:

VariableBecomes
{time}The time left in a countdown, otherwise the current time
{players} and {max_players}Players online and player slots
{server}The server name
{uptime}How long the server has been up
{cpu}, {memory} and {disk}Current usage
{tps}Ticks per second on Minecraft Java servers
{date}, {schedule} and {trigger}Today's date, the schedule name and what started the run

Triggers

A schedule can have several triggers. Without one, it only runs with Run now or from another schedule.

TriggerRuns
Time of dayDaily, weekly on the days you pick, monthly, hourly or with your own cron fields, in the time zone of the schedule
RepeatEvery few minutes or hours
Server crashWhen Wings reports that the server crashed
Game updateWhen a new Steam build (Rust, ARK, Valheim and others), a new Minecraft version or a new Paper build is released
Console outputWhen a console line matches your text or regular expression, for example java.lang.OutOfMemoryError
Resource usageWhen CPU, memory or disk stays above a percentage for a number of minutes

Server crash, Console output and Resource usage triggers have a cooldown, so a crash loop or a chatty console starts the schedule only once in that window. A game update starts it once per new build.

Conditions

Conditions are checked every time a trigger fires. If they don't hold, the run is skipped and the reason appears in the history. You can check the power state, players online, free disk, CPU, memory, TPS, uptime, the time of day and the day of the week, and choose whether all or any must match. If / Else steps use the same conditions inside a run.

When schedules overlap

All schedules of a server share one lock, so a backup never runs while a restart stops the server. In Settings, pick a Priority (Low, Normal, High or Critical) and what happens when another schedule is running:

OptionWhat happens
QueueWaits until the running schedule finishes, then runs.
SkipDoesn't run at all.
Cancel lower priorityStops a running schedule with a lower priority and runs now, otherwise waits in the queue.
Run in parallelIgnores the lock.

Settings also has the colour, the time zone, how long a schedule may wait in the queue or run, Pause until a date and time, and Discord notifications when a run succeeds or fails.

Calendar

Calendar shows a week from Monday to Sunday with every planned run in its hour. Schedules at the same hour sit side by side in their colours. Schedules that run more often than once an hour, and schedules that run on events, are shown as badges above the grid. Use the arrows and This week to move between weeks, and click a run to open its schedule.

History and live runs

The History tab lists the runs of the last 7 days with their status (Success, Failed, Running, Queued, Stopped or Skipped), what started them, when and how long they took. Open a run to read the log of every step with its time. While a run is in progress, its current step, a progress bar and the time left in a countdown update live, and Stop ends it right away.

Pause, export, import and copy

  • Pause until stops a schedule until the date you pick, then it resumes on its own.
  • Export JSON in Settings or Export all in the ⋯ menu downloads schedules as a JSON file. Import JSON adds them to another server. Nothing is imported unless every schedule is valid on that server.
  • Copy to other servers copies schedules to your other servers. Links between the copied schedules are kept.

Schedules from the old Schedules page

If a server has schedules made with the standard Pterodactyl Schedules page, a notice lists them above your schedules. Click Convert to turn them into Schedules+ schedules with the same time, tasks and delays. The old schedule is removed afterwards, so nothing runs twice.