mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-04-25 00:51:20 +00:00
fix(#878): add robust crontab binary check to requirements
This commit is contained in:
parent
b14a07315b
commit
861869cb48
1 changed files with 5 additions and 1 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue