kagkarlsson / db-scheduler

Persistent cluster-friendly scheduler for Java
Apache License 2.0
1.25k stars 191 forks source link

feat: Candidate provided due and housekeeper executors #393

Closed adamranderson closed 1 year ago

adamranderson commented 1 year ago

Brief, plain english overview of your changes here

Candidate provided dueExecutor and houseKeeperExecutor.

Issue: https://github.com/kagkarlsson/db-scheduler/issues/392

This helps db-scheduler work when applications use ThreadLocals or MDC. These applications have to implement custom thread pool or decorator patterns to manage state across threads. For just one example see decorateTask in ScheduledThreadPoolExecutor.

Reminders


cc @kagkarlsson

kagkarlsson commented 1 year ago

I cleaned it up a bit myself rather than commenting on the PR. Sometimes that is quicker than the regular PR ping-pong :). Thank you for contributing 👍

kagkarlsson commented 1 year ago

🎉 This issue has been resolved in v12.4.0 (Release Notes)