Background Processes

Background Processes

Some API operations trigger background processes on the server.

Backups

Creating a backup runs asynchronously:

  1. API call POST /api/backup/create
  2. Server responds immediately with status started
  3. Backup runs in the background
  4. Status queryable via GET /api/backup/status
{
  "success": true,
  "data": {
    "status": "in_progress",
    "progress": 45,
    "started_at": "2025-01-15T14:30:00Z"
  }
}

World Operations

World saving (POST /api/world/save) is also performed asynchronously to avoid blocking the main thread.

TPS Calculation

TPS (Ticks Per Second) are recalculated and cached in the background every 5 seconds.