diff --git a/src/aiida/cmdline/commands/cmd_process.py b/src/aiida/cmdline/commands/cmd_process.py index 2074e9cec..285fe00e4 100644 --- a/src/aiida/cmdline/commands/cmd_process.py +++ b/src/aiida/cmdline/commands/cmd_process.py @@ -342,7 +342,9 @@ def process_kill(processes, all_entries, timeout, wait, force_kill): with capture_logging() as stream: try: message = 'Killed through `verdi process kill`' - control.kill_processes(processes, all_entries=all_entries, timeout=timeout, wait=wait, message=message, force_kill=force_kill) + control.kill_processes( + processes, all_entries=all_entries, timeout=timeout, wait=wait, message=message, force_kill=force_kill + ) except control.ProcessTimeoutException as exception: echo.echo_critical(f'{exception}\n{REPAIR_INSTRUCTIONS}') diff --git a/src/aiida/cmdline/params/options/main.py b/src/aiida/cmdline/params/options/main.py index 35a90fbe1..2d74d3a2a 100644 --- a/src/aiida/cmdline/params/options/main.py +++ b/src/aiida/cmdline/params/options/main.py @@ -329,7 +329,13 @@ def set_log_level(ctx, _param, value): FORCE = OverridableOption('-f', '--force', is_flag=True, default=False, help='Do not ask for confirmation.') -FORCE_KILL = OverridableOption('-fk', '--force-kill', is_flag=True, default=False, help='Kills the process without waiting for a response if the job is killed.') +FORCE_KILL = OverridableOption( + '-fk', + '--force-kill', + is_flag=True, + default=False, + help='Kills the process without waiting for a response if the job is killed.', +) SILENT = OverridableOption('-s', '--silent', is_flag=True, default=False, help='Suppress any output printed to stdout.') diff --git a/src/aiida/engine/processes/control.py b/src/aiida/engine/processes/control.py index 5708abb50..a8e2d61a1 100644 --- a/src/aiida/engine/processes/control.py +++ b/src/aiida/engine/processes/control.py @@ -201,7 +201,9 @@ def kill_processes( return controller = get_manager().get_process_controller() - _perform_actions(processes, controller.kill_process, 'kill', 'killing', timeout, wait, msg=message, force_kill=force_kill) + _perform_actions( + processes, controller.kill_process, 'kill', 'killing', timeout, wait, msg=message, force_kill=force_kill + ) def _perform_actions(