Skilldeliver
Skilldeliver10mo ago

Issue with Advanced -> Sleep

Hello guys! I'm facing an issue with a windmill project involving a flow. The flow includes steps designed to pause the process for specific durations—ranging from 20 minutes to 1 or 2 days. These wait times are determined by calculating the total seconds required for each pause, allowing for a randomized wait period within a predefined time window. It seems to bypass these wait steps entirely, executing all actions back-to-back without any delay. I've even attempted to set these wait times directly through the user interface (Advanced -> Sleep), but the issue persists.
No description
No description
4 Replies
rubenf
rubenf10mo ago
Hi @Skilldeliver , could you reproduce on app.windmill.dev and share the workspace and flow with us please
Skilldeliver
SkilldeliverOP10mo ago
Okay, I will try to reproduce the problem and get back to you :)) Update from my side: I wasn't able to recreate my flow in app.windmill.dev because I have a lot of operations with a database that isn't exposed, etc. But I actually found the issue: .shared was enabled on this flow, causing it to skip steps without sleeping. It's not clear to me why .shared could cause that, but disabling .shared solves the issue.
rubenf
rubenf10mo ago
yes shared cannot be used with sleep because it relies on working on the same worker with a persisting disk, but we should make that more transparent by erroring
Skilldeliver
SkilldeliverOP10mo ago
yes, the erroring could be really useful :))

Did you find this page helpful?