OwlPlug icon indicating copy to clipboard operation
OwlPlug copied to clipboard

Abort a running task from UI

Open DropSnorz opened this issue 2 years ago • 1 comments

The only way to abort a running or planned task is by closing the app. It would be helpful to cancel/abort a task: Plugin Sync, Bundle Installation, etc...

DropSnorz avatar Dec 30 '22 19:12 DropSnorz

Implementing task cancellation on top of JavaFx Task will introduce some complexity on each task logic definition.

During task execution, frequent calls should be made to task.isCancelled() during execution (downloads, file move, ...) to handle the cancellation logic and complete the task gracefully. It means, we have to define all points in a task execution where cancellation is possible.

This cancellation won't help with a task stuck on a java or native call.

DropSnorz avatar Mar 31 '24 09:03 DropSnorz