swh/counters: Avoid refresh_history cronjob infinite retries
- Use the retry command line
- Split the rpc checks from the refresh endpoint call
- Fix a couple of minor side issues
Related to swh/infra/sysadm-environment#5387 (closed)
Staging instance, all changes can be removed at any time
Related to swh/infra/sysadm-environment#5387 (closed)