WorkerInput
WorkerInput objectnamestring required- max length 80
kindstring requiredAllowed values:"laravel-queue""command"scriptstring optionalcommand: 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.
argsarray<string> optional- max items 32
instancesinteger optional- minimum 1
- maximum 8
cpu_percentinteger optional0: the website's own cap
- minimum 0
- maximum 100
memory_mbinteger optionalPer process; 0: 512 MB or the website's cap if lower
- minimum 0
- maximum 65536
enabledboolean optional
Used by
| POST | /api/v1/tenants/{tid}/sites/{id}/workers | Add 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 |