Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions src/drunc/process_manager/interface/cli_argument.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,6 @@ def wrapper(f0):
multiple=True,
help="Select the process of a particular UUIDs",
)(f3)
f5 = click.option(
"--crash",
is_flag=True,
default=False,
help="Simulate a crash: send SIGKILL without any cleanup, leaving the process manager in an unexpected-death state.",
)(f4)
return generate_process_query(f5, at_least_one, all_processes_by_default)
return generate_process_query(f4, at_least_one, all_processes_by_default)

return wrapper
6 changes: 6 additions & 0 deletions src/drunc/process_manager/interface/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,12 @@ def terminate(obj: ProcessManagerContext) -> None:

@click.command("kill")
@add_query_options(at_least_one=True)
@click.option(
"--crash",
is_flag=True,
default=False,
help="Simulate a crash: send SIGKILL without any cleanup, leaving the process manager in an unexpected-death state.",
)
@click.pass_obj
def kill(obj: ProcessManagerContext, query: ProcessQuery) -> None:
log = get_logger("process_manager.shell")
Expand Down
Loading