cancel_job
Stop a running or queued PixInsight job started with async. Running jobs halt at the next processEvents call, and completed changes remain.
Instructions
Stop a job started by run_pjsr or run_pjsr_file with async. A job PixInsight has not started yet is removed and never runs. A running job is stopped at its next processEvents() call, where an error with MCP_CANCELLED ends the script; a native process call (a single long process, a file save) cannot be interrupted, so the stop takes effect after it returns, and what the script already changed stays changed. Without job_id: the running job. job_status reports the outcome.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | No | The id run_pjsr returned. Omit for the running job. |