device_paused reason code until you call phone_device_resume. Use it as a safety switch when you want to guarantee nothing new starts on a phone.
Parameters
string
The device to pause. Omit to use your default device.
Behavior
- New tasks are blocked -
phone_run_taskcalls targeting the device fail withdevice_paused. - In-flight tasks keep running. Pausing a device does not stop work that is
already executing. To stop current work too, use
phone_task_cancelorphone_session_end.
Device pause is different from task pause.
phone_task_pause suspends one
running task so it can be resumed later; device pause gates the whole device
against new work.Related
phone_device_resume- lift the pausephone_device_status- check whether a device is pausedphone_task_cancel- stop an in-flight task