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

refactor task/job executors #1686

Merged
merged 2 commits into from
Feb 2, 2025
Merged

refactor task/job executors #1686

merged 2 commits into from
Feb 2, 2025

Conversation

goekay
Copy link
Member

@goekay goekay commented Feb 2, 2025

  • migrate from java's executor impl to spring's abstraction: let spring handle the bean lifecycle, graceful shutdown etc.

  • separate on interface-level between scheduled and async tasks: we only have 1 use case for scheduled tasks (websocket ping-pongs), whereas all other usages of ScheduledExecutorService were just async job submissions. separation might be useful in future, if we want to have distinct thread pools as well.

  • with regards to the previous point: separate TaskExecutor and TaskScheduler usage already

* migrate from java's executor impl to spring's abstraction:
let spring handle the bean lifecycle, graceful shutdown etc.

* separate on interface-level between scheduled and async tasks:
we only have 1 use case for scheduled tasks (websocket ping-pongs),
whereas all other usages of ScheduledExecutorService were just async
job submissions. separation might be useful in future, if we want to have
distinct thread pools as well.
@goekay goekay merged commit 3bfcc82 into master Feb 2, 2025
45 checks passed
@goekay goekay deleted the refactor_executors branch February 2, 2025 21:09
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