Skip to content

[FEATURE] Allow $.flow.suspend to resume within the same step #3094

@dylburger

Description

@dylburger

See this comment for details.

What I would like to achieve, if possible of course, would be a suspension which allows to be resumed within the calling component. Maybe a win-win solution, from a user experience standpoint, could invoke a new resume() function within the calling component itself, like the following:

export default {
  async run({ $ }) {
    const { cancel_url, resume_url } = $.flow.suspend();
    // ...
  },
  async resume({ resumeData }) {
     // ...
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesttracked internallyIssue is also tracked in our internal issue trackertriagedFor maintainers: This issue has been triaged by a Pipedream employee

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions