Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cancel all executors on error #489

Merged
merged 3 commits into from
Sep 26, 2024

Conversation

dimastbk
Copy link
Collaborator

@dimastbk dimastbk commented Sep 26, 2024

  1. If one JobPoller/JobExecutor fails, other tasks continue to run. After this PR all task will cancel on error in one of them. Use TaskGroup from anyio because of asyncio.TaskGroup was introduced in Python 3.11.
  2. ZeebeWorker.stop() cancels tasks after JobPoller/JobExecutor stops.
  3. Replace aiofiles.open with anyio.open_file.

@dimastbk dimastbk changed the title Cancel all executors Cancel all executors on error Sep 26, 2024
@dimastbk dimastbk merged commit a2e44fd into camunda-community-hub:master Sep 26, 2024
16 checks passed
@dimastbk dimastbk deleted the cancel-all-executors branch September 26, 2024 13:11
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.

1 participant