THE ORIONIS API
Build with clarity.
Explore the building blocks of an async-first Python framework. Every module, class, and method — connected, searchable, and ready to build with.
class documentation
class MaintenanceModeCommand(BaseCommand): (source)
Known subclasses: orionis.console.commands.support.down.DownCommand, orionis.console.commands.support.up.UpCommand
Write a runtime-visible maintenance state for HTTP workers.
| Method | handle |
Atomically update the state periodically read by HTTP workers. |
| Class Variable | state |
State selected by the maintenance-mode command. |
| Class Variable | status |
Console message describing the resulting maintenance status. |
| Class Variable | timestamps |
Timestamps flag used by MaintenanceModeCommand. |
Atomically update the state periodically read by HTTP workers.
| Parameters | |
app:orionis.IApplication | Application providing the framework storage directory. |
console:orionis.console.Console | Console used to report the state change. |
| Returns | |
int | Zero when the state is written; one when the write fails. |
overridden in
orionis.console.commands.support.down.DownCommand, orionis.console.commands.support.up.UpCommandState selected by the maintenance-mode command.
overridden in
orionis.console.commands.support.down.DownCommand, orionis.console.commands.support.up.UpCommandConsole message describing the resulting maintenance status.