Also I notice that the step name listed

Also I notice that the step name listed in the history have an int appended to them. Im not adding that so wondering why its there / where its documented
7 Replies
sdr
sdrOP3w ago
const updatedRun = await step.do(`run.complete`, async () => {
...
const updatedRun = await step.do(`run.complete`, async () => {
...
sdr
sdrOP3w ago
No description
Isaac McFadyen
Guessing that this is because a step will retry if it fails, and on successive retries the number will increase (-1, then -2, then -3, etc) Not 100% sure though, someone from the Workflows team would have to confirm for sure
sdr
sdrOP3w ago
Yeah maybe its attempts. It would be strange to have a dynamic step name though
Craig
Craig3w ago
Yeah because those names are dynamic and you can run in loops, it will increment each time it runs
Seekerdasbatatas
yhep, the name can be duplicated in these cases so, for consistency, we add an integer to the end of each step name
itsmatteomanf
itsmatteomanf3w ago
it's not for retries, but yeah, if you do this you have a bunch of different steps with the same name
for (let i = 0; i < array.length; i++) {
await step.do("handle array item", () => {})
}
for (let i = 0; i < array.length; i++) {
await step.do("handle array item", () => {})
}
I don't like the integer at the end either, though :NotLikeThis:
Want results from more Discord servers?
Add your server