A Little Confued About Agents Schedule

Hello, I'm confused scheduling tasks with the Agents SDK, if there's a new scheduled tasks, for example the "checkFlights" function, and its supposed to be called 10 seconds in the future, why i can't see in the console.log the text: "Checking flight ${data.flight} for ${data.date}", it seems like the function is not being called, what's the correct way to make the function to be called/executed after the 10 seconds?, is there something wrong with my code?, I have already copied and pasted the examples from cloudflare but the callback fn is not being called. Thank you.
No description
1 Reply
Vero | OOO Public Holiday
Hey. It's probably best to ask in #agents

Did you find this page helpful?