-
Notifications
You must be signed in to change notification settings - Fork 45
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
SystemService and backend improvements #193
Conversation
…e redis tasks into memory, optimization of metrics adjustment
Sweet! |
It seems like I didn't fix
How this class is used? |
Hey, thanks for the changes. I like it! AFAIK I'll see how we could make it compatible with the changes you've proposed 👍 |
I think it is better to not keep all the objects as fields, but add some funcs to get needed data, probably with pagination |
Yep, was thinking about the same thing. Even iterators would be okay as they are right now but we'd also need to add information about the number of tasks (of course this should be pretty light in comparison) |
Okay, did some digging and I think I've spotted all problematic/unoptimal code fragments.
I like the direction where this is going though! 👍 |
Continued in #207, where I reimplemented some of your changes. Thanks for your contribution! |
The only place which stays unsafe is
@ backend.py get_all_tasks
:At this place all the redis tasks keys are loaded into memory, which could lead to MemoryError/redis connection drop in case there are not enough RAM on the server (we faced such issue when there were 9Mil tasks)