elsa-workflows / elsa-workflows/elsa-core

[BUG] No instance created on timeout

Open
#5,972 0 comments 0 reactions 0 assignees View on GitHub
bug triaged
Dominant language
C#
Stars
7.9k
Forks
1.5k
Avg merge
15h 22m
Merged PRs (30d)
114

Description

## Description
Calling the /execute endpoint for a workflow that takes long and if a timeout occurs, the instance is not created/visible in the editor.

## Steps to Reproduce
- Have a workflow that takes a lot of time to execute.
- Call the workflow and make sure that your http request will timeout after a few seconds.

3. **Attachments**:
-

4. **Reproduction Rate**: Indicate how often the bug occurs when following these steps (e.g., "every time", "intermittently: about 50% of the time").
Always

5. **Video/Screenshots**: Sometimes, complex behaviors are better shown than described. If you think a video or screenshots would help clarify the issue, please include them.
-

6. **Additional Configuration**:
-

## Expected Behavior
- The instance should still be created/be visible in the editor. By visible I mean to have a record of that execution.

## Actual Behavior
- No new instance is created in the list.

## Environment
- **Elsa Package Version**: Specify the version. If you've cloned the repo, mention if you are using the latest source code from the main branch. - 3.1.1
- **Operating System**: Include your OS version (e.g., Windows 10, macOS Big Sur, Ubuntu 18.04). - Windows
- **Browser and Version**: If applicable, include your browser and version (e.g., Chrome 92). - Edge

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the timeout through the /execute endpoint with a long-running workflow, then trace how execution records are created and exposed in the editor. Done means the timed-out request still leaves a visible execution instance record in the editor.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
api, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.