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:

  1. Enter lockdown mode task.
  2. Delay task that waits for the work queue to report that the server is idle.
  3. Run desired tasks to perform while the server is in lockdown mode.
  4. 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.