Skip to content

Scheduled tasks for Hytale servers (restarts, commands, broadcasts)

A scheduled task runs one action on a server on a cron schedule: a restart, a console command, a broadcast message or a Hytale update. Each server has its own tasks, on the Schedules tab of the server page.

Scheduled backups are set up separately, on the Schedules tab of the Backups page. See Backups.

  1. Open the server and go to the Schedules tab.
  2. Click New Task.
  3. Pick the Action and the Schedule, fill in the fields for that action, and click Schedule.

The list shows each task with its schedule, the next and the last run, and the result of the last run (ok, pending, skipped or failed, with the reason). Use the power button to turn a task off or on, and the bin to delete it.

Action What it does Fields
Restart server Restarts the server. Warning before the restart, 0 to 15 minutes.
Console command Sends one command to the server console, for example world save. The command, up to 500 characters.
Broadcast message Sends say <message> to the server, so every player sees it in chat. The message, up to 200 characters.
Hytale update (maintenance window) Installs a newer Hytale build of the server’s channel, if there is one. Warning before the update, 0 to 15 minutes.

Commands and messages cannot contain line breaks or other control characters.

The update task is described in Hytale server updates.

The Schedule field offers presets:

Preset Cron expression
Every hour 0 * * * *
Every 6 hours 0 */6 * * *
Daily at 04:00 0 4 * * *
Weekly, Sunday 04:00 0 4 * * 0
Custom (cron) your own expression

A custom expression has the usual five fields: minute, hour, day of month, month, day of week (0 or 7 is Sunday). Each field accepts *, a value, a range a-b, a list a,b,c and a step */n. Below the field the panel shows a plain-language reading of the expression, such as “Daily at 04:00”.

Rules:

  • A task may run at most every 5 minutes. An expression that fires more often is refused.
  • Times are in the time zone of the panel server.
  • The API checks for due tasks once a minute.
  • A task that was off and is turned on again waits for its next slot. It does not catch up on missed runs.

With a warning of 1 to 15 minutes, the restart task first sends this to the server:

say Server restarts in 5 minutes

Then it waits that long and restarts the server. Before the restart it checks again that the server is still running and that the task is still allowed. If not, the restart is skipped and the reason is shown. With a warning of 0 the server restarts at once.

  • Restarts, commands and broadcasts only run while the server is running. Otherwise the run is recorded as skipped: server not running.
  • An update task also runs on a stopped server. See Hytale server updates.
  • A task runs as the user who saved it. If that user is deleted, deactivated, or loses a permission or console role the task needs, the run is skipped and the reason is shown.

Every task needs the server.manage permission on the server. By default that is moderators, admins, owners and the server’s own owner. See Roles and permissions.

Each task type also needs:

Action Also needs
Restart, Hytale update server.start
Console command, broadcast server.console

A command runs with the console role of the user who saved it, exactly like a command typed in the console. A command above that role is refused when you save the task. A broadcast and a restart or update warning send say, which needs at least the moderator console role. See What each role may type in the console.

When someone edits a task’s command, message or warning, the task runs as that person from then on. Nobody can edit a task into a command they could not schedule themselves.

Anyone with server.view can see a server’s tasks.

Tasks can also be managed over the API, for example with an API key that has the Manage scope:

  • GET /api/v1/servers/:id/tasks
  • POST /api/v1/servers/:id/tasks with type (restart, update, command or broadcast), cron_expr and payload (warn_minutes, command or message)
  • PATCH /api/v1/servers/:id/tasks/:taskId to change cron_expr, payload or enabled
  • DELETE /api/v1/servers/:id/tasks/:taskId
TalePanel

Built by BitaceS · sudowl.com · Partner:HytaleTalk

Free forever · AGPL-3.0 · Not affiliated with Hypixel Studios. · Impressum · Datenschutz