kalisio / krawler

A minimalist (geospatial) ETL
https://kalisio.github.io/krawler/
MIT License
54 stars 13 forks source link

Healthcheck endpoint does not raise errors like the healthcheck command #279

Closed claustres closed 3 months ago

claustres commented 3 months ago

Steps to reproduce

Let a job run and skip too much times.

Expected behavior

Healthcheck endpoint should raise an error.

Actual behavior

Healthcheck endpoint does not raise an error.

The healthcheck command actually uses the healthcheck endpoint to check for job failure, then perform additional checks like # of skipped jobs, duration or success rate. We should integrate all errors in the healthcheck endpoint so that both are coherent.

System configuration

Tell us about the applicable parts of your setup.

Module versions (especially the part that's not working): 2.6

NodeJS version: 20

Operating System: Linux