Sanket
Sanket5mo ago

Problem with sleep

Hey guys, We are facing an issue with sleep in the flow. Scenario is we have a step in the flow which needs to sleep for 6 hours and then execute the next step. Problem is after completing the sleep time flow will shut down. See the example in the screenshot it shows the error "Job Cancelled" and http connection was broke by sanket. But we are not touching the flow when it's sleeping. My observation is it is always crashing after completing the sleep time. Have anyone came across this problem ? Any help/suggestion is appreaciated. Thanks Sanket | MissionCTRL
No description
4 Replies
rubenf
rubenf5mo ago
you're calling it with the sync endpoint when you need the async endpoint sync endpoint will cancel the job as soon as you break the http connection
Sanket
Sanket5mo ago
@rubenf thanks for the quick response, I have just checked I am invoking the flow using Async endpoint only. It's being invoked from our platform's backend service under specific action performed from the customer's end. Do you want me to provide any further implementation details ?
No description
rubenf
rubenf5mo ago
I guarantee you that flow was called with the sync endpoint
Sanket
Sanket5mo ago
Agh, I have used async one for prod env but sync for staging, and I tested all the time in staging. Thanks for quickly pointing it. 🙏