I also noticed that this issue only
I also noticed that this issue only happens when the sleep duration is long, while short sleep periods work perfectly fine.
Has anyone encountered this behavior or knows why it might be happening?
3 Replies
We have a sleep for 3 days and haven’t run into any issues! I’d recommend reading rules for workflows in the docs, particularly about not defining things outside of steps. The whole workflow needs to be idempotent — the workflow should be able to run from the top after waking from hibernation.
@d3v1an7 Okay. thank you. do you have any idea after I execute sleep until for long period of time, how much time cloudflare takes to be in hibernation mode?
No, sorry! I might be missing it, but I haven’t seen a specific time mentioned in the docs or limits, and my guess is because “it depends”.
I probs wouldn’t try and find that limit, as it might shift. Instead, make sure the workflow doesn’t rely on state outside of steps.