Skip to content

Make executors return a Future that allows cancelling and aborting#404

Open
payno wants to merge 15 commits into
split_multithreadedExecutorfrom
387-owewokswidgetwithtaskstack-provide-api-to-cancel-a-task-2
Open

Make executors return a Future that allows cancelling and aborting#404
payno wants to merge 15 commits into
split_multithreadedExecutorfrom
387-owewokswidgetwithtaskstack-provide-api-to-cancel-a-task-2

Conversation

@payno

@payno payno commented Jun 24, 2026

Copy link
Copy Markdown
Member

#403 to be merged first.

Goal

  • Makes the different executors return TaskFuture (inherit from Future).
    • ̀execute_task` now return a TaskFuture
  • Futures can be cancelled and aborted.
  • rework ̀TaskExecutorQueueto handle future (doesn't inherit fromQueue` anymore)

payno added 3 commits June 24, 2026 14:07
* now execution returns a future
* Executor implements `AbortableExecutor` and `CancellableExecutor` API

# Conflicts:
#	src/ewoksorange/gui/owwidgets/threaded.py
# Conflicts:
#	src/ewoksorange/gui/concurrency/threaded.py
@payno payno force-pushed the 387-owewokswidgetwithtaskstack-provide-api-to-cancel-a-task-2 branch from 22e261f to f87b745 Compare June 24, 2026 12:07
@payno payno changed the title Draft: 387 owewokswidgetwithtaskstack provide api to cancel a task 2 Draft: Move executor to Future and allow cancelling and aborting Jun 24, 2026
@codecov

codecov Bot commented Jun 24, 2026

Copy link
Copy Markdown

@payno payno force-pushed the 387-owewokswidgetwithtaskstack-provide-api-to-cancel-a-task-2 branch from 4682642 to 95d6a3e Compare June 24, 2026 16:08
…utor' and 'CancellableAndAbortableExecutor' to base.
@payno payno force-pushed the 387-owewokswidgetwithtaskstack-provide-api-to-cancel-a-task-2 branch from 5428012 to 5fdfca9 Compare June 25, 2026 12:30
@payno payno changed the title Draft: Move executor to Future and allow cancelling and aborting Move executor to Future and allow cancelling and aborting Jun 25, 2026
@payno payno changed the title Move executor to Future and allow cancelling and aborting Make executors return a Future that allows cancelling and aborting Jun 25, 2026
@payno payno requested a review from a team June 25, 2026 13:11

@woutdenolf woutdenolf left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lets focus on simplifying the executor logic first like you already started doing but simplify much more: #403 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants