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)```
1 Reply
Karam
KaramOP3mo ago
i declared the waitTimes array as a private variable in the class. it won't change in between runs

Did you find this page helpful?