jambonz / realtimedb-helpers

utility functions for querying jambonz redis database
0 stars 9 forks source link

Expires uses incorrect MAX_CALL_LIFETIME for completed calls #58

Closed ajukes closed 2 months ago

ajukes commented 2 months ago

MAX_CALL_LIFETIME & MAX_CALL_LIFETIME_AFTER_COMPLETED are round the wrong way when determining expires for a call being saved to redis.

This means that redis contains a large amount of calls after they have completed for up to 12hrs.

Another side effect is that the purge-calls function works overtime to clean up a large amount of calls putting load on the redis cluster.