Brian
Brian2w ago

Cron Job that runs several times a day but only in-between certain time frames

I would like to have a minutely cron job which should only run between 7 a.m. and 8p.m. is that possible to setup? In theory I could check the time after the cron job started but every node being run costs credits now so I would like to not do that.
2 Replies
AI Support
AI Support2w ago
AI Support Bot Information
<@112676328783802368> you can react on the relevant answer (message) with a ✅ in this thread when you think it has been solved, by the bot or by a human! Anyone can react on this message with a ❌ if the GPT bot is unhelpful or hallucinating answers. Please note: Team members will review and answer the questions on best efforts basis.
AI Support
AI Support2w ago
AI Response
It seems that there is no direct support addressed in the documentation for creating a minutely cron job that runs only between specific hours like 7 a.m. and 8 p.m. However, theoretically, you can set up your cron job to trigger every minute, and then add a condition at the beginning of your workflow to check the current time and proceed with execution only if it's within your desired timeframe. Unfortunately, the current system constraints dictate that each node execution, including a time-check node, would consume workflow credits. You might consider reaching out to BuildShip support for more optimized solutions or insights on conditional cron configurations that might not be entirely documented here. Alternatively, if this is a critical feature, they could potentially assist in finding a workaround specific to your use case. You can send a support request via in-app support for more assistance.
BuildShip AI Support