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

Fixes stopping of wrong scheduled tasks #44

Merged
merged 1 commit into from
Jan 3, 2024
Merged

Conversation

onukristo
Copy link
Contributor

@onukristo onukristo commented Jan 3, 2024

Context

Currently when a scheduled task was stopped by its handle, it caused the stoppage of all tasks which had the same delay left.

Fixes stopping of wrong scheduled tasks.

Checklist

@onukristo onukristo requested a review from a team as a code owner January 3, 2024 13:35
@onukristo onukristo changed the title Schedule tasks fix Fixes stopping of wrong scheduled tasks Jan 3, 2024
@@ -22,7 +22,7 @@ public void afterPropertiesSet() {
try {
if (!initialized) {
executorService = Executors.newCachedThreadPool(new CountingThreadFactory("tw-base"));
scheduledTaskExecutor = new SimpleScheduledTaskExecutor(null, executorService);
scheduledTaskExecutor = new SimpleScheduledTaskExecutor("gste", executorService);
Copy link
Member

Choose a reason for hiding this comment

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

What does "GSTE" mean here?

Copy link
Contributor Author

@onukristo onukristo Jan 3, 2024

Choose a reason for hiding this comment

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

Global scheduled task executor.

@onukristo onukristo merged commit ff6e89a into master Jan 3, 2024
18 checks passed
@tw-peeterkarolin tw-peeterkarolin deleted the schedule_tasks_fix branch January 11, 2024 07:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants