"interrupt" sends SIGINT to the running code or dependency install and
keeps the session's state. The code may not stop, so check the returned
output: it can still end in [running; poll with an empty send].
"restart" replaces the worker and discards all R, Python and DuckDB state
in the selected session.
Usage
mcp_console_control(
connection,
action = c("interrupt", "restart"),
session = NULL
)Arguments
- connection
A connection created by
mcp_console_connection().- action
"interrupt"or"restart".- session
Optional named session to target (defaults to
NULL, which targets MCP Console's"default"session).