Renamed 'WorkflowLivenessThreshold' to 'InactivityThreshold' for clarity and updated its usage across affected files. Adjusted timings for workflow restarts and delays to improve consistency, including increasing task delay and updating scheduler intervals. These changes enhance readability and align with revised task execution timelines.
13 lines
322 B
C#
13 lines
322 B
C#
using Elsa.Workflows;
|
|
|
|
namespace Elsa.Server.Web;
|
|
|
|
public class SlowActivity : CodeActivity
|
|
{
|
|
protected override async ValueTask ExecuteAsync(ActivityExecutionContext context)
|
|
{
|
|
Console.WriteLine("Starting...");
|
|
await Task.Delay(TimeSpan.FromMinutes(2));
|
|
Console.WriteLine("Done.");
|
|
}
|
|
} |