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][Sync Frequency] Skipping data collection when there are multiple projects with the same schedule #8175

Open
2 of 3 tasks
roberioguedelho opened this issue Oct 31, 2024 · 4 comments
Labels
severity/p1 This bug affects functionality or significantly affect ux type/bug This issue is a bug

Comments

@roberioguedelho
Copy link

Search before asking

  • I had searched in the issues and found no similar issues.

What happened

Data collection is not occurring on schedule for some projects when I have multiple projects with the same schedule.
Captura de Tela 2024-10-31 às 09 38 28

What do you expect to happen

Data collection is triggered for all projects with the same schedule.

How to reproduce

The problem is occurring with 61 projects with the same schedule, I don't know the exact number of projects for the bug to occur, for a small amount it doesn't occur.

Anything else

The bug occurs in all schedules

Version

v1.0.0

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

@roberioguedelho roberioguedelho added the type/bug This issue is a bug label Oct 31, 2024
@dosubot dosubot bot added the severity/p1 This bug affects functionality or significantly affect ux label Oct 31, 2024
Copy link

dosubot bot commented Oct 31, 2024

@roberioguedelho Olá! Como posso ajudar você hoje? 😊

The issue you're experiencing with data collection not occurring on schedule for multiple projects with the same schedule might be related to a known limitation in the system. The code uses an errgroup with a concurrency limit set by g.SetLimit(maxConcurrency), where maxConcurrency is defined as 10. This means that the system is designed to handle a maximum of 10 concurrent operations at a time, which could be affecting the scheduling of data collection for your 61 projects [1].

To address this, you might consider adjusting the concurrency limit if possible, or staggering the schedules to reduce the number of projects being processed simultaneously.

To continue talking to Dosu, mention @dosu.

@roberioguedelho
Copy link
Author

@dosu Is there any environment variable to change the value of maxConcurrency?

Copy link

dosubot bot commented Oct 31, 2024

Yes, you can change the value of maxConcurrency by setting the MAX_CONCURRENCY environment variable. This allows you to adjust the concurrency limit to better suit your needs. Make sure to restart the application after making this change for it to take effect.

To continue talking to Dosu, mention @dosu.

@klesh
Copy link
Contributor

klesh commented Nov 1, 2024

Try the latest beta, It might be fixed but I can't recall which version it was.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
severity/p1 This bug affects functionality or significantly affect ux type/bug This issue is a bug
Projects
None yet
Development

No branches or pull requests

2 participants