-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
There is an issue with a flow processing that stops accidentally after 20 minutes of execution.
Here is a line in the code that describes a constant for timeout in case of Running flow after 20 minutes
Line 15 in 95a667e
| const TIMEOUT = process.env.ELASTICIO_TIMEOUT || 20 * 60 * 1000; // 20 minutes |
The case:
- Create a flow;
- First step generates an array with 7000 int values;
- Second step (code-component) emits each array item individually with delay (500 ms).
- Run a flow.
An execution will continue 20 minutes and it stop emit messages even if an amount is less than 7000.
As a solution, there should be checked any activity during last 20 minutes before firing a timeout operation in order to keep a flow alive if it is still doing any job.
Metadata
Metadata
Assignees
Labels
No labels