Skip to content

Improves the ParallelTaskExecutor#586

Merged
idlira merged 4 commits intodevelopfrom
ili/OX-12263
Dec 5, 2025
Merged

Improves the ParallelTaskExecutor#586
idlira merged 4 commits intodevelopfrom
ili/OX-12263

Conversation

@idlira
Copy link
Contributor

@idlira idlira commented Dec 4, 2025

Description

  • Fix a bug where the internal executor were not closed when the task context was no longer active, resulting in the submitted tasks to run until the end even when the "parent" already closed.
  • Permits to override how to check if the process is still active, other than the default TaskContext.get().isActive.

Additional Notes

  • This PR fixes or works on following ticket(s): OX-12263

Checklist

  • Code change has been tested and works locally
  • Code was formatted via IntelliJ and follows SonarLint & best practices

By default, we check if the current TaskContext is active, but more complex scenarios might require additional checks.

Fixes: OX-12263
@idlira idlira added 🐛 Bugfix Contains only a small fix for an existing bug 🧬 Enhancement Contains new features 👶🏻 Trivial Easy to review labels Dec 4, 2025
if something is submitted after the executor have been closed.

For cleanliness, empty the queue at the end.

Fixes: OX-12263
@idlira idlira merged commit 2b3f063 into develop Dec 5, 2025
4 checks passed
@idlira idlira deleted the ili/OX-12263 branch December 5, 2025 09:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🐛 Bugfix Contains only a small fix for an existing bug 🧬 Enhancement Contains new features 👶🏻 Trivial Easy to review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants