fix(#878): add robust crontab binary check to requirements

This commit is contained in:
Nikita
2026-03-15 05:23:05 +01:00
committed by teknium1
parent b14a07315b
commit 861869cb48

View File

@@ -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")