anngvu / accent

AI-Assisted Curation/Content ENhancement Tool for Synapse (pre-alpha)
MIT License
0 stars 1 forks source link

Consider refactor of synapse client initialization/reset to be more reactive #47

Closed anngvu closed 2 months ago

anngvu commented 3 months ago

The Java synapse client instance is created/reset with whatever SYNAPSE_AUTH_TOKEN is stored in state. We expect that SAT can eventually be switched during a session, e.g. because a data manager need to switch between different accounts used to manage DCC A vs DCC B. It might be better to use a watcher to initialize/reset the client more reactively when SAT is updated. After all, there wouldn't really be a case when SAT is updated but we don't want to update the client instance right away?