Page created: 22 Jul 2020 |
Page updated: 1 Feb 2021
You can create recurring tasks to move a server in and out of lockdown mode. Moving a server in and out of lockdown mode is useful for scheduling other tasks while the server is mostly idle and not accepting connections from clients.
While in lockdown mode, the server reports itself as unavailable and also rejects requests from any user that doesn't have the lockdown-mode privilege.
The recommended flow for a recurring task chain that uses lockdown mode would be:
- Enter lockdown mode task.
- Delay task that waits for the work queue to report that the server is idle.
- Run desired tasks to perform while the server is in lockdown mode.
- Leave lockdown mode task.
The enter lockdown mode and leave lockdown mode tasks each allow one optional property that you can use to supply a description for why that the server is being moved into this mode.