Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Le suivi des précalculs peut engendrer des erreurs #192

Open
leogail opened this issue Oct 25, 2024 · 1 comment
Open

Le suivi des précalculs peut engendrer des erreurs #192

leogail opened this issue Oct 25, 2024 · 1 comment

Comments

@leogail
Copy link
Collaborator

leogail commented Oct 25, 2024

Exemple d'erreur :

File "/app/public/./v1/lda.py", line 131, in <module>
  push_to_gateway('*************', job=job_name, registry=registry)
File "/usr/local/lib/python3.9/site-packages/prometheus_client/exposition.py", line 527, in push_to_gateway
  _use_gateway('PUT', gateway, job, registry, grouping_key, timeout, handler)
File "/usr/local/lib/python3.9/site-packages/prometheus_client/exposition.py", line 619, in _use_gateway
  handler(
File "/usr/local/lib/python3.9/site-packages/prometheus_client/exposition.py", line 379, in handle
  resp = build_opener(base_handler).open(request, timeout=timeout)
File "/usr/local/lib/python3.9/urllib/request.py", line 523, in open
  response = meth(req, response)
File "/usr/local/lib/python3.9/urllib/request.py", line 632, in http_response
  response = self.parent.error(
File "/usr/local/lib/python3.9/urllib/request.py", line 561, in error
  return self._call_chain(*args)
File "/usr/local/lib/python3.9/urllib/request.py", line 494, in _call_chain
  result = func(*args)
File "/usr/local/lib/python3.9/urllib/request.py", line 641, in http_error_default
  raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 503: Service Unavailable

Suggestion : utiliser un try - except - pass. Cela aurait l'avantage de faire tourner le précalcul même lorsque la machine jobs-metrics est indisponible ET de faire fonctionner les tests sur github.

@leogail
Copy link
Collaborator Author

leogail commented Nov 5, 2024

Suggestion : utiliser un try - except - pass.

Non. Cela ralentit drastiquement les précalculs.

@leogail leogail closed this as completed Nov 5, 2024
@leogail leogail reopened this Nov 5, 2024
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

No branches or pull requests

1 participant