devinvs / acf_rides

2 stars 0 forks source link

Make backend use channels for assigning rides #6

Closed devinvs closed 2 years ago

devinvs commented 2 years ago

Currently the backend has a thread which polls the database every 5 seconds in order to assign rides. Rework the thread to use channels to be notified of changes to the database. Every time someone drives, rides, or unattends an event the channel should be pumped, the thread woken up, and the rides info reconciled.

devinvs commented 2 years ago

Tackling this next