accelerated-data-science icon indicating copy to clipboard operation
accelerated-data-science copied to clipboard

Cancel job run only if it is in cancellable state when force deleting a job

Open qiuosier opened this issue 1 year ago • 2 comments

When deleting a job, there is an option to force_delete all job runs. However, job run can only be cancelled if it is "in progress", "accepted" or "need attention". Otherwise there will be error. This PR updates the ADS to cancel only the job runs that can be cancelled. There is no need to a cancel job run before deleting if it is in other states.

qiuosier avatar Jul 22 '24 19:07 qiuosier