There's a race condition for whether a job will end up CANCELLED or ERROR after it's cancelled. Making the job remember that it was cancelled prevents it from setting it to ERROR later
Changes
Accurately track cancelled state in the job itself
Reorder job logging to make sure we don't lose message
Rationale
There's a race condition for whether a job will end up CANCELLED or ERROR after it's cancelled. Making the job remember that it was cancelled prevents it from setting it to ERROR later
Changes