saturnin._scripts.commands.daemons

Saturnin daemon commands

Globals

saturnin._scripts.commands.daemons.app

Typer command group for daemon management commands

Parameters:
  • args (Any) –

  • kwargs (Any) –

Return type:

Any

Command functions

saturnin._scripts.commands.daemons.list_daemons() None[source]

List running Saturnin daemons.

Return type:

None

saturnin._scripts.commands.daemons.show_daemon(pid: int = <typer.models.ArgumentInfo object>) None[source]

Show information about running Saturnin daemon.

Parameters:

pid (int) –

Return type:

None

saturnin._scripts.commands.daemons.stop_daemon(pid: int = <typer.models.ArgumentInfo object>) None[source]

Stop running Saturnin daemon.

Parameters:

pid (int) –

Return type:

None

Functions

saturnin._scripts.commands.daemons.get_first_line(text: str) str[source]

Returns first non-empty line from argument.

Parameters:

text (str) –

Return type:

str

saturnin._scripts.commands.daemons.get_running_daemons() Dict[int, str][source]

Returns dictionary with running daemons: key=pid, value=recipe_name

Return type:

Dict[int, str]

saturnin._scripts.commands.daemons.pid_completer(ctx, args, incomplete) List[source]

Click completer for PIDs of running Saturnin daemons.

Return type:

List