Skip to content

387 owewokswidgetwithtaskstack provide api to cancel a task 3 add example#411

Merged
woutdenolf merged 4 commits into
387-owewokswidgetwithtaskstack-provide-api-to-cancel-a-task-3from
387-owewokswidgetwithtaskstack-provide-api-to-cancel-a-task-3-add_example
Jul 17, 2026
Merged

387 owewokswidgetwithtaskstack provide api to cancel a task 3 add example#411
woutdenolf merged 4 commits into
387-owewokswidgetwithtaskstack-provide-api-to-cancel-a-task-3from
387-owewokswidgetwithtaskstack-provide-api-to-cancel-a-task-3-add_example

Conversation

@woutdenolf

Copy link
Copy Markdown
Member

Add fix and example script

@@ -1,2 +1,3 @@
from .EwoksExecutor import EwoksExecutor # noqa F401
from .EwoksExecutor import SubmitPolicy # noqa F401

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.

👍

task.execute()
finally:
done.set()
self._abort_event.set()

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.

I don't see why the abort should always be set. Should it be more upper (line 54 and replacing line 50?)

@woutdenolf woutdenolf Jul 17, 2026

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

this is the stop the _watch_abort thread which is waiting on self._abort_event.wait(). See above, it has a comment.

@woutdenolf
woutdenolf merged commit 273197f into 387-owewokswidgetwithtaskstack-provide-api-to-cancel-a-task-3 Jul 17, 2026
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