Run a function inside an existing session context
run_in_session
binds the given session id, executes your function, and preserves the session (does not end it).
session_id
(string, required): Existing session id to bind.fn
(callable, required): Function to execute within the session context.*args
, **kwargs
: Arguments forwarded to fn
.fn
returns.