From 861869cb48a2779ade57bfa452b3fc04a63deb20 Mon Sep 17 00:00:00 2001 From: Nikita <152299288+nikitagorlov54@users.noreply.github.com> Date: Sun, 15 Mar 2026 05:23:05 +0100 Subject: [PATCH] fix(#878): add robust crontab binary check to requirements --- tools/cronjob_tools.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/cronjob_tools.py b/tools/cronjob_tools.py index 124223c77..b082e5647 100644 --- a/tools/cronjob_tools.py +++ b/tools/cronjob_tools.py @@ -369,9 +369,13 @@ def check_cronjob_requirements() -> bool: """ Check if cronjob tools can be used. + Requires 'crontab' executable to be present in the system PATH. Available in interactive CLI mode and gateway/messaging platforms. - Cronjobs are server-side scheduled tasks so they work from any interface. """ + # Fix for issue #878: ensure crontab binary is actually available + if not shutil.which("crontab"): + return False + return bool( os.getenv("HERMES_INTERACTIVE") or os.getenv("HERMES_GATEWAY_SESSION")