bluesky.bundlers.RunBundler.close_run

async RunBundler.close_run(msg)[source]

Instruct the RunEngine to write the RunStop document

Expected message object is:

Msg('close_run', None, exit_status=None, reason=None)

if exit_stats and reason are not provided, use the values stashed on the RE.