Job disappears from dashboard after deletion even though it is still running

I noticed that when I delete a job (either by code or by using the admin panel), it immediately disappears from the Processing list even though it might need a little more time until it stops.

There are some jobs which need some time to react to the cancellation token, either because some of their internal operations do not support it or because they just need some time to finish up gracefully.

I believe that during this time the job should be in a Deleting state somewhere in the dashboard and should not appear as Deleted immediately. Anyway, it still occupies a worker during this time.

Otherwise, the dashboard appears in a weird state since it looks like it has nothing under processing however other queued jobs aren’t picked up.