Remix.run Logo
▲ pgcosta 5 hours ago

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?

▲vishnukool 4 hours ago | parent [-]

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

▲modo_ an hour ago | parent [-]

I've seen people set up crons to run every 15 minutes and accidentally spend a ton because the agent runs every time, even when there's nothing to do. Do you have a way to run a cheap check first and only wake the agent when something actually needs its attention?