pi_portal.modules.integrations.slack.cli.commands.bases.process_uptime_command
Base process uptime command that can be nested within other commands.
- class pi_portal.modules.integrations.slack.cli.commands.bases.process_uptime_command.SlackProcessUptimeCommandBase(bot)[source]
Retrieves uptime for the process and re-raises supervisor exceptions.
- Parameters:
bot (
SlackBot) – The configured slack bot in use.
- hook_invoker()
Retrieve process information.
- Return type:
None
- hook_supervisor_exception()[source]
Re-raise the SupervisorException.
- Raises:
supervisor.SupervisorException- Return type:
None
- invoke()
Manage the process with error handling.
- Return type:
None