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

[BUG] - CPU spike / max-out in One-time job when 2 or more equal times are provided #778

Closed
rbroggi opened this issue Sep 19, 2024 · 0 comments · Fixed by #779
Closed

[BUG] - CPU spike / max-out in One-time job when 2 or more equal times are provided #778

rbroggi opened this issue Sep 19, 2024 · 0 comments · Fixed by #779
Labels
bug Something isn't working

Comments

@rbroggi
Copy link
Contributor

rbroggi commented Sep 19, 2024

Describe the bug

The scheduler CPU usage spikes (suggesting an infinite loop) when one or more equal times are used.

Below the flamegraph screenshot that shows that the whole application is allocating all the CPU to the scheduler:

image

Specifically the problem seems to lie on selectExecJobsOutForRescheduling

To Reproduce

When creating schedule using JobDefinition OneTimeJob and providing two at times at the same time.

Version

2.11

Expected behavior

No spike in memory, duplicate same items

Additional context

@rbroggi rbroggi added the bug Something isn't working label Sep 19, 2024
@rbroggi rbroggi mentioned this issue Sep 19, 2024
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant