Skip to content

Switch Elsa Studio workflow execution from /execute to async /dispatch #811

@kubakorecek

Description

@kubakorecek

Description

Currently, Elsa Studio
triggers workflows using the synchronous /execute endpoint. This causes the client to wait for workflow completion and can lead to blocking behavior, timeouts, or poor UX for long-running workflows.

It would be useful if Elsa Studio could optionally use the asynchronous /dispatch endpoint instead, allowing workflows to be scheduled and executed in the background.

Expected behavior

  • Elsa Studio should support triggering workflows through /dispatch.

  • Ideally this could be:

    • configurable globally, or
    • selectable per workflow/action.
  • The UI should handle async execution gracefully:

    • return workflow instance ID,
    • optionally poll for status,
    • or provide navigation to the running workflow instance.

Motivation

Using /dispatch would:

  • avoid blocking HTTP requests,
  • improve handling of long-running workflows,
  • reduce timeout-related failures,
  • better support distributed/background execution scenarios.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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