wuvt / wuvt-site

Website including a CMS, playlist information, and donation management tools
https://www.wuvt.vt.edu
GNU Affero General Public License v3.0
11 stars 12 forks source link

poll radiothon status from donormotor #397

Open echarlie opened 3 years ago

echarlie commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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 commented 2 years ago

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