canonical / ubuntu-pro-client

Ubuntu Pro Client for offerings from Canonical
https://canonical-ubuntu-pro-client.readthedocs-hosted.com/en/latest/
GNU General Public License v3.0
52 stars 73 forks source link

Bug: Dead code for periodically checking for contract updates #3058

Closed orndorffgrant closed 3 months ago

orndorffgrant commented 5 months ago

Description of the bug

We have some dead code that periodically looks for contract updates.

Expected behavior

We should either use the code or delete it. It may also be replaced by a future contract migration feature which would allow the backend to signal a refresh is needed via a flag in the activity ping response.

Current behavior

https://github.com/canonical/ubuntu-pro-client/blob/next-v33/uaclient/timer/update_contract_info.py is dead code

Additional context

We stopped this job because it was putting too much pressure on the backend.