When updates are pushed to shark, particularly ones that change data structures of events, it can take a long time (potentially forever) for those changes to propagate and update all existing data objects.
To remedy this, there should be RPCs that clear the caches these components hold, removing all stale data that may have been rendered structurally-incorrect by an update.
I would suggest something like agency.__clear for AgencyRPCSession, with the dunderscore indicating that this is not a normal rpc, and meta.__clear_history for HistorySession.
These procedures could additionally take arguments to give more granular control over what gets cleared by a single call.
When updates are pushed to shark, particularly ones that change data structures of events, it can take a long time (potentially forever) for those changes to propagate and update all existing data objects.
To remedy this, there should be RPCs that clear the caches these components hold, removing all stale data that may have been rendered structurally-incorrect by an update.
I would suggest something like
agency.__clear
forAgencyRPCSession
, with the dunderscore indicating that this is not a normal rpc, andmeta.__clear_history
forHistorySession
.These procedures could additionally take arguments to give more granular control over what gets cleared by a single call.