datafusion-ballista icon indicating copy to clipboard operation
datafusion-ballista copied to clipboard

Duplicate job in UI after canceling job

Open andygrove opened this issue 3 years ago • 2 comments

Describe the bug

cancel2

To Reproduce Cancel job from UI

Expected behavior A clear and concise description of what you expected to happen.

Additional context Add any other context about the problem here.

andygrove avatar Oct 15 '22 17:10 andygrove

This also appears to happen without cancelling a job. After a while, all jobs disappeared Kinda weird. More debugging: cancelling a completed job should not be possible, but the call to the cancel API returns

{
  "cancelled": true
}

In the scheduler I get the following errors, so I guess there's more investigation needed. image

onthebridgetonowhere avatar Oct 17 '22 03:10 onthebridgetonowhere

The logic for the cancel_job API should be slightly different, probably it should check if a job can be cancelled. Only a running or queued job could be canceled.

onthebridgetonowhere avatar Oct 17 '22 04:10 onthebridgetonowhere