API referenceSections

WorkerInput

WorkerInput object
  • name string required
    • max length 80
  • kind string required
    Allowed values: "laravel-queue" "command"
  • laravel WorkerLaravel | null optional
  • script string optional

    command: the file to run, relative to the release (an application) or the website's files (PHP: a .php file). Empty runs the application's own program with args.

  • args array<string> optional
    • max items 32
  • instances integer optional
    • minimum 1
    • maximum 8
  • cpu_percent integer optional

    0: the website's own cap

    • minimum 0
    • maximum 100
  • memory_mb integer optional

    Per process; 0: 512 MB or the website's cap if lower

    • minimum 0
    • maximum 65536
  • enabled boolean optional

Used by

POST/api/v1/tenants/{tid}/sites/{id}/workersAdd a worker; it runs as the website's own identity, supervised, within its caps
PUT/api/v1/tenants/{tid}/sites/{id}/workers/{worker}Change a worker; its processes start again