propose_off_hours_schedule
Propose stopping a cluster's worker servers outside working hours to save cost: the off-hours lever of the Cost decisions, filed as an off_hours_schedule decision a person approves, never written straight to the cluster's power schedules. Prefer it over create_power_schedule whenever the user wants a cluster off at night or at weekends to save money, or acts on an off_hours_schedule recommendation from get_cloud_savings. The stop is scale_to_zero (the worker servers are deleted at the provider every stop and created again at the start; the control plane, etcd and cloud volumes keep running, and anything on a worker's own disk is lost at every stop). It runs the same off-hours gate the savings model and the cost autopilot run: a cluster nobody confirmed as non-production, one labelled or graded production, one that served traffic or ran its own workloads inside the stop window over the last 14 days, or one whose activity could not be measured is refused with the reason and nothing is filed - tell the user why, and do not schedule the stop with create_power_schedule instead. When another surface (the cost autopilot, the Cost page) already holds an off-hours proposal for the cluster, that proposal is returned (standing_twin true) and no second one is filed. On the confirmation card, the member who confirms it approves the proposal and Ankra arms the stop and start schedules at once, with a receipt, and measures the saving seven days later; that needs billing.manage. Everywhere else - MCP, an approved plan - the tool only files the proposal and returns portal_url, where a person with billing.manage approves it: give the user that link. The default window is weekdays 19:00 to 07:00 plus weekends, in the organisation's off-hours timezone; the expected saving is recorded only for that window. A window the user chose (stop_cron, start_cron) is measured over the hours it stops, not the default window's. A proposal already approved, held or running for the cluster keeps the window a person approved: a request for another window is refused with both windows (requested_window), and a person sets the standing proposal aside at portal_url before a new one is filed. Set accept_node_local_data_loss true ONLY after the user has explicitly agreed to lose the data on worker disks at every stop, never on your own judgement.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timezone | No | IANA timezone the stop and start run in, e.g. 'Europe/Stockholm'. Defaults to the organisation's off-hours timezone (the cost autopilot's quiet hours, else UTC); the cluster's night activity is measured in this timezone. | |
| stop_cron | No | 5-field cron of the stop. Defaults to '0 19 * * 1-5' (weekdays 19:00). Only change it when the user asks for another window. | |
| cluster_id | No | UUID of the target cluster. Optional when a cluster is selected. | |
| start_cron | No | 5-field cron of the start. Defaults to '0 7 * * 1-5' (weekdays 07:00). Must never fire at the same time as the stop. | |
| cluster_name | No | Exact name of the target cluster. Optional when a cluster is selected. | |
| accept_node_local_data_loss | No | The user's explicit consent to losing the data on the worker disks at every stop, used when the card's approval runs the schedules. Set it to true ONLY after you have told the user what is lost and the user has explicitly agreed - never pre-emptively, and not because the user asked for the schedule. Defaults to false. |