Under what circumstances is the github actions job context status property cancelled?

From job context

job.status | string | The current status of the job. Possible values are success, failure, or cancelled.

I have a test workflow with an action that cancels the workflow. With the job that cancels the workflow the status is success. Also from a job that needs that job the needs result is also reporting as success.