pause_print
Pause a 3D print job while maintaining nozzle and bed temperatures to prevent cooling and failed recovery.
Instructions
Pause the currently running print job.
Pausing lifts the nozzle and parks the head.
Heater behaviour during pause varies by firmware:
- Bambu A1 / A1 mini: the firmware drops the **hotend** target
~3-5 minutes into a pause regardless of slicer settings (bed
target survives). An untreated 25-min pause cools the nozzle
from 220°C to ~90°C, which means the resume can't extrude
until you re-heat — and bed adhesion can fail in the meantime.
- Bambu X1/P1 series: typically holds both targets, but a long
idle can still trigger cooldown.
- OctoPrint / Moonraker / Klipper: depends on firmware config;
most hold targets across pause.
To fight this, ``pause_print`` spawns a best-effort daemon thread
that re-asserts the pre-pause hotend + bed targets every 2 minutes
until the printer leaves the PAUSED state (resume, cancel, error,
or manual button press). This is enabled by default.
Args:
keep_temps: When ``True`` (default), capture the pre-pause tool
and bed targets and re-assert them every ~2 minutes via a
background daemon thread. Set ``False`` to skip the
keep-alive (legacy behaviour — printer may cool during long
pauses). The keep-alive thread is idempotent: repeat
pause/resume cycles do not compound threads.
Use ``resume_print()`` to continue from where the print left off.
The keep-alive thread is automatically stopped on resume or cancel.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keep_temps | No |