Enables distributed runtime for workflows
Configures the workflow runtime to use a distributed implementation, enhancing scalability and resilience. Adds debug logging for Elsa.
This commit is contained in:
parent
472f7da5fb
commit
32b04ded28
|
|
@ -7,6 +7,7 @@
|
|||
<ProjectReference Include="..\..\modules\Elsa.Persistence.EFCore.Sqlite\Elsa.Persistence.EFCore.Sqlite.csproj" />
|
||||
<ProjectReference Include="..\..\modules\Elsa.Scheduling\Elsa.Scheduling.csproj" />
|
||||
<ProjectReference Include="..\..\modules\Elsa.Workflows.Core\Elsa.Workflows.Core.csproj" />
|
||||
<ProjectReference Include="..\..\modules\Elsa.Workflows.Runtime.Distributed\Elsa.Workflows.Runtime.Distributed.csproj" />
|
||||
<ProjectReference Include="..\..\modules\Elsa.Workflows.Runtime\Elsa.Workflows.Runtime.csproj" />
|
||||
<ProjectReference Include="..\..\modules\Elsa\Elsa.csproj" />
|
||||
<ProjectReference Include="..\..\modules\Elsa.Expressions.CSharp\Elsa.Expressions.CSharp.csproj" />
|
||||
|
|
|
|||
|
|
@ -17,6 +17,7 @@ using Elsa.Workflows.CommitStates.Strategies;
|
|||
using Elsa.Workflows.IncidentStrategies;
|
||||
using Elsa.Workflows.LogPersistence;
|
||||
using Elsa.Workflows.Options;
|
||||
using Elsa.Workflows.Runtime.Distributed.Extensions;
|
||||
using Elsa.Workflows.Runtime.Options;
|
||||
using Elsa.Workflows.Runtime.Tasks;
|
||||
using JetBrains.Annotations;
|
||||
|
|
@ -70,6 +71,7 @@ services
|
|||
{
|
||||
runtime.UseEntityFrameworkCore(ef => ef.UseSqlite());
|
||||
runtime.UseCache();
|
||||
runtime.UseDistributedRuntime();
|
||||
})
|
||||
.UseWorkflowsApi()
|
||||
.UseScheduling()
|
||||
|
|
|
|||
|
|
@ -2,7 +2,8 @@
|
|||
"Logging": {
|
||||
"LogLevel": {
|
||||
"Default": "Warning",
|
||||
"Microsoft.Hosting.Lifetime": "Information"
|
||||
"Microsoft.Hosting.Lifetime": "Information",
|
||||
"Elsa": "Debug"
|
||||
}
|
||||
},
|
||||
"HostBuilder": {
|
||||
|
|
|
|||
Loading…
Reference in a new issue