logoalt Hacker News

pgcosta • today at 8:29 PM • 1 reply • view on HN

How do cronjobs work? IE: If I ask an agent to setup a cronjob to check on my email once a day, how does the sandbox behave?

Does it have a layer that intercepts Cronjob creation, and setups up a reminder on the supervisor to wake the VM to run the agent job?


Replies

vishnukool • today at 9:36 PM

Great question!

Cron jobs were a big problem, especially if you want agents that must auto-sleep to save on costs. Since you cannot put the cron jobs within the sandbox container anymore, we eventually created our own cron API to wake up the sandbox and execute the cron

https://www.agent37.com/docs/agents-api/crons#crons