Skip to content

Autoload data collectors #419

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

Open
wants to merge 7 commits into
base: develop
Choose a base branch
from
Open

Conversation

ilicfilip
Copy link
Collaborator

Context

We use data collectors for some time now, they are primarily used in Local Tasks but can also be used by other parts of the codebase. They have their own hooks and data collector manager also takes care that their data is re-cached once a day.

This PR autoloads all data collectors, so we don't need to do it manually.

@aristath , I looked int making an object instance at the data collector class file (and then just required it) but I need the object in order to loop all of them and do daily cache refresh - so I created objects in the data manager class.

@ilicfilip ilicfilip requested a review from aristath April 9, 2025 08:05
Copy link
Contributor

github-actions bot commented Apr 9, 2025

Test on Playground
Test this pull request on the Playground or download the zip.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants