Changes the state of a background job.
jobSetState(
job,
state = c("idle", "running", "succeeded", "cancelled", "failed")
)The following states are supported:
The job is waiting to run.
The job is actively running.
The job has finished successfully.
The job was cancelled.
The job finished but did not succeed.