Skip to content

Question: Dynamic number of steps #271

@arpadgabor

Description

@arpadgabor

I'm currently using OpenWorkflow and it's all fine, but our app needs to get data from a third party API and that data can become pretty big so storing/retrieving the step result is quite slow.

Currently this data fetching happens in a single step, but I was thinking about splitting it into multiple steps (we call the same api's multiple times with different input data).

Would having a dynamic number of steps feasible? Would this not conflict somehow with the problems mentioned in the versioning documentation?

e.g. code

await Promise.all(
  myDynamicLengthArray.map((data, index) => {
    return step.run({ name: `fetch-data-$index{}` }, () => { ... })
  }
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions