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)
Related to swh/infra/sysadm-environment#5387 (closed)