Skip to content

Update inactive_clients list and apply it on startup - #880

Open
EvanDietzMorris wants to merge 1 commit into
masterfrom
inactive-endpoints
Open

Update inactive_clients list and apply it on startup#880
EvanDietzMorris wants to merge 1 commit into
masterfrom
inactive-endpoints

Conversation

@EvanDietzMorris

Copy link
Copy Markdown
Contributor

Turn off all non-shepherd ARAs and KPs

Only the three shepherd ARAs (shepherd-aragorn, shepherd-arax, shepherd-bte) should receive queries going forward.

This adds the other 16 inforesids to inactive_clients in config/config.yaml, and fixes bug-ish behavior that made those entries not be applied for existing django databases even when the app is redeployed.

Specifically, get_or_create_actor set actor.active = False for anything in inactive_clients, but only called save() if the actor's inforesid or channel had also changed. For actors already in the database the flag was never persisted. It now saves on its own whenever the flag differs from the config, in both directions, so removing an entry re-activates that actor on the next restart.

This also cleans up some leftover old entries (infores:aragorn-ranker-exp, infores:tr_ara_ncats, infores:tr_ara_wfr) which did nothing because they didn't have corresponding entries in httpclients.

The now-disabled services are intentionally left in httpclients; that block holds their endpoint style and params, so re-enabling one is easy (remove it from the inactive list).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant