Scheduled and manual jobs are not cancelable in the UI

Problem

When using a scheduled job, it's not possible to cancel it directly in the UI:

image

However if we click the Cancel pipeline button, the scheduled job is canceled.

image

This behavior is also not consistent with manual jobs. Should it be?

Expected behavior

The scheduled job should also be cancelable via the UI

Details

The backend allows the state transition from scheduled to canceled. Similarly a manual job can become canceled, although it's also not cancelable? when in manual state.

[4] pry(main)> b.status
=> "manual"
[5] pry(main)> b.cancelable?
=> false
[6] pry(main)> b.cancel
=> true
[7] pry(main)> b.status
=> "canceled"
Edited by 🤖 GitLab Bot 🤖