nyaruka / mailroom

Backend services for the TextIt platform.
Other
0 stars 1 forks source link

Add generic model for session timed events #362

Open rowanseymour opened 3 hours ago

rowanseymour commented 3 hours ago

Currently we have flows.flowsession.timeout_on and wait_expires_on to track when we need to timeout or expire a session wait. Two issues:

Maybe we add a new model which just holds a timed event for a session:

A cron job processes those, queues them appropriately and deletes the row when done. No need to mark anything in Redis.

rowanseymour commented 3 hours ago

Reminder to self: it's courier that actually sets flows.flowsession.timeout_on when a message is actually sent, so it would have to be courier that creates the new thing too.