Cannot retry a cancelled job

Summary

When a job has been cancelled (by cancelling the job itself or the pipeline), there is no "Retry" button for the job.

Steps to reproduce

As far as I can see, run a pipeline, then cancel it while it's running. There is no (GUI) way to retry the cancelled jobs.

Example Project

https://gitlab.com/Molcas/OpenMolcas/-/jobs/223682019

What is the current bug behavior?

Finished jobs offer a Retry button (if the user has appropriate permissions, I guess), cancelled jobs don't.

The whole pipeline can be retried. Or, if a finished job is retried, and then cancelled, one can retry the original finished job, but not the cancelled one.

What is the expected correct behavior?

It should be possible to retry every job, if there are no other restrictions.

Output of checks

This bug happens on GitLab.com

Edited by 🤖 GitLab Bot 🤖