Turn serverless on or off
service_sleep_setSet a Lizard app or database to sleep after idle minutes or stay always on, so it saves cost and wakes on the next request.
Instructions
Use this when the user wants a Lizard service to be serverless (sleep when idle) or always on. On: with no traffic for idleMinutes (5-1440, default 15) it sleeps with its memory saved, costs almost nothing, and the next request or connection wakes it in about a second. Turning it on restarts the service once. Works for apps with one replica and a port, and for Postgres/Redis databases; the error says why otherwise.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| enabled | Yes | true: sleep when idle; false: always on | |
| project | Yes | Project name, slug, or ID | |
| service | Yes | App or database name or ID | |
| idleMinutes | No | Minutes without traffic before it sleeps |