Comments (2)
To address the issue of tasks not starting during high concurrency stress testing, it's important to understand the underlying architecture and configuration of Elsa Workflows. The issue may be related to the limitations of the workflow engine under heavy load or a configuration that does not support high concurrency.
Elsa Workflows is designed to handle both short-running and long-running workflows, and it supports parallel execution of activities. However, there may be limitations based on the persistence provider used, the job scheduler configuration, and the resources available to the application.
To troubleshoot and resolve this issue, consider the following steps:
-
Review the Configuration: Ensure that the configuration of Elsa, the job scheduler (like Hangfire), and the database is optimized for high concurrency. This may involve adjusting connection pool sizes, worker thread counts, and other relevant settings.
-
Check for Known Issues: Review the known issues and limitations of Elsa Workflows to see if the problem you're experiencing is a recognized issue that may have a workaround or is pending a fix in a future release.
-
Analyze the Logs: Check the application logs for any errors or warnings that may indicate why the tasks are not starting. Look for patterns or specific errors that occur when the system is under load.
-
Optimize Database Access: If the persistence layer is a bottleneck, consider optimizing database access. This may involve indexing, query optimization, or even changing the persistence technology if necessary.
-
Scale Out: If the application is running on a single node, consider scaling out to multiple nodes to distribute the load. Elsa 3 introduces support for a distributed runtime using Proto.Actor, which may help in achieving better concurrency.
-
Seek Community Help: If the issue persists, consider reaching out to the Elsa community on GitHub or other forums. You can open an issue on the Elsa GitHub repository to seek assistance from the maintainers and the community.
-
Consider Professional Support: If Elsa is critical to your business and you require immediate assistance, consider seeking professional support from the Elsa team or a consultant who specializes in workflow engines and high concurrency applications.
Please note that without access to the specific configuration and setup of your Elsa instance, as well as detailed logs and system information, it's challenging to provide a precise solution. The steps above are general guidelines to help you investigate and address the issue.
This comment was generated by Glime.
from elsa-core.
maybe it was because immediately report task executed completed in webhook.
`
[HttpPost("run-task")]
public async Task RunTask(WebhookEvent webhookEvent)
{
var payload = webhookEvent.Payload;
var taskPayload = payload.TaskPayload;
var taskId = payload.TaskId;
Task.Run(async () =>
{
await new ElsaClient().ReportTaskCompletedAsync(taskId, result: new { success = true });
});
return Ok();
}
`
from elsa-core.
Related Issues (20)
- [BUG] FailedToConnect activity in SendHttpRequest is not executed HOT 3
- [BUG] Race condition in Bookmark Management HOT 3
- [BUG] Mixed Content block after deployed to kubernetes HOT 2
- [BUG] Duplicate executions when using the default scheduling provider in single-node environment HOT 1
- [ENH] Add File Download Capability to SendHttpRequest Activity HOT 1
- [BUG]An unhandled error has occurred. Reload HOT 2
- [BUG] ELSA 3.2 rc1 with latest studio. Null reference exception when editing JavaScript expressions HOT 3
- [CHORE] Is there an example of Elsa 3.0 implementing various activities in designer mode? Thank you.
- [BUG]Is there an example of Elsa 3.0 implementing various activities in designer mode? Thank you. HOT 2
- [BUG]在Elsa 3.1.3设计器中If活动为啥有一个属性Condition,却没有Then和Else属性? HOT 2
- [BUG]Why is the If activity in designer 3.1.3 only having the Condition attribute and not the Then and Else attributes? HOT 1
- [BUG] Elsa 3.1 Fork activity wrong status HOT 1
- [BUG] I Set activity Finish after for loop break but it still call httprequest again HOT 2
- [ENH] Add UseMySql parameter HOT 6
- [BUG] Temporary Azure Service Bus subscriptions are not being deleted HOT 1
- [CHORE] Resolve Warnings HOT 1
- [FEAT] Interactive JavaScript Debugging for Activity Input Fields HOT 1
- [FEAT] Add Ability to Provide Test Values for Workflow Variables in Elsa Studio HOT 1
- [BUG] Context.SetVariable not stored in WorkflowInstance HOT 1
- Hello "Workflow Instance Storage" not work in Variable [BUG] HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from elsa-core.