Canceling a Transcription Job

Cancel a running transcription job in Speech.

You can cancel a job only when the job is in progress or no tasks exist. When no tasks exist, the job is in an accepted state. Tasks are in an accepted state until they're scheduled by the job scheduler, and begin chunking. At that point they're switched to in progress and can't be canceled.

Canceled is an end state meaning that the job is done. Canceling means that the service is in the process of trying to cancel all tasks in the accepted state, but it's possible that it might not get to all the tasks before they're switched to a state that can't be canceled.