Changes the state of a background job.
jobSetState(
job,
state = c("idle", "running", "succeeded", "cancelled", "failed")
)
The ID of the job on which to change state.
The new job state.
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.
Other jobs: jobAddOutput()
,
jobAddProgress()
, jobAdd()
,
jobRemove()
, jobRunScript()
,
jobSetProgress()
, jobSetStatus()