binusgdc / VCPA

A Discord bot that records voice call participants' attendance
2 stars 4 forks source link

Handling failure of storing a log after session stops #24

Closed istamarahsan closed 6 months ago

istamarahsan commented 1 year ago

Session logs are stored locally, to be pushed later. This is done right after a session stops. In the rare case that this fails, the session should be recoverable. Implement an in-memory buffer containing the most recent completed session. This buffer can be used to retry storing the session at a later time or failing that, requested to be uploaded and attached as CSV. Both of these behaviors are very close to what is currently done in dev with pushlog (v1), and CSVs are uploaded after session stops, but this should be redone for a more intuitive user experience.