Karam
Karam
CDCloudflare Developers
Created by Karam on 11/1/2024 in #workers-help
Dynamic step names in workflow
Hi, in the docs it says not to dynamically create step names since they can be lost when the workflow hibernates. For a potential use case i have an action that needs to be repeated on a schedule. I can define that schedule as an array of wait times then iterate over that array and call the step to do the action then call a step.sleep with the value from the array. Would that also trip up the hibernation since i would be dynamically calling the sleep like so: `step.sleep(sleeping for ${waitTime}, ${waitTime} seconds)```
2 replies