attpcdaq.daq.models.ECCServer.refresh_configs

ECCServer.refresh_configs()[source]

Fetches the list of configs from the ECC server and updates the database.

If new configs are present on the ECC server, they will be added to the database. If configs are present in the database but are no longer known to the ECC server, they will be deleted.

The old configs are deleted based on their last_fetched field. Therefore, this field will be updated for each existing config set that is still present on the ECC server when this function is called.