Lovinity / wwsu

THIS PROJECT HAS BEEN MIGRATED TO GITLAB: https://gitlab.com/wwsu1069/wwsu
4 stars 1 forks source link

Make checks for stuck RadioDJ queues. #96

Closed Lovinity closed 4 years ago

Lovinity commented 5 years ago

Add a check in the system for when not in any of the "_on" states. If the active RadioDJ appears to not be playing anything, trigger queue recovery. For the "_returning" states, when queue time registers as 0, check to make sure the queue is actually empty of tracks. If it is not empty of tracks, treat it as a frozen RadioDJ. Sometimes it might do this for a few seconds at the end of a break, so don't trigger frozen unless it does this for 15 seconds.

Also, downgrade the trigger time for all related checks to 15 seconds.