elsa-workflows / elsa-workflows/elsa-studio

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

Open
#811 0 comments 0 reactions 0 assignees View on GitHub
triaged
Dominant language
C#
Stars
301
Forks
181
Avg merge
17h 12m
Merged PRs (30d)
42

Description

**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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.