Stop evaluations that take too long #408

Open
opened 2024-11-30 15:26:34 +00:00 by fricklerhandwerk · 0 comments
fricklerhandwerk commented 2024-11-30 15:26:34 +00:00 (Migrated from github.com)

Since https://github.com/Nix-Security-WG/nix-security-tracker/pull/405, starting the worker service will stop all ongoing evaluations (or mark stuck ones) by labeling them as crashed. We want to do this periodically in case evaluations go on longer than some reasonable time, such as 24h since that's our update period.

Implementation note:

add a supervisor timer unit that will check if there's any evaluation taking far too long (> 24 hours) and will forcibly restart the worker.
https://github.com/Nix-Security-WG/nix-security-tracker/pull/405#issue-2705731982

Since https://github.com/Nix-Security-WG/nix-security-tracker/pull/405, starting the worker service will stop all ongoing evaluations (or mark stuck ones) by labeling them as crashed. We want to do this periodically in case evaluations go on longer than some reasonable time, such as 24h since that's our update period. Implementation note: > add a supervisor timer unit that will check if there's any evaluation taking far too long (> 24 hours) and will forcibly restart the worker. > https://github.com/Nix-Security-WG/nix-security-tracker/pull/405#issue-2705731982
Sign in to join this conversation.
No description provided.