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

poll radiothon status from donormotor #397

Open
echarlie opened this issue May 28, 2021 · 3 comments
Open

poll radiothon status from donormotor #397

echarlie opened this issue May 28, 2021 · 3 comments

Comments

@echarlie
Copy link
Member

since the donation app needs to know radiothon mode for donation handling, and will have the UI for editing those redis values there, we should poll it.

@mutantmonkey
Copy link
Member

We'll want to make sure we cache the status for a sufficient amount of time (maybe 5 minutes or something) so we don't unnecessarily impact performance on either end. Ideally we'd perform the cache update asynchronously as well; we probably don't want to slow page loads for this.

@echarlie
Copy link
Member Author

echarlie commented Jun 9, 2021

yes. we should shove it in redis as we do now. Celery is the way we're doing asynchronous tasks in wuvt-site, yes?

@echarlie
Copy link
Member Author

echarlie commented Dec 21, 2021

donormotor currently exposes radiothon status as /api/v1/radiothon, which returns {"radiothon": "true"} (or false). it is an incredibly naïve API.

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

No branches or pull requests

2 participants