Disable execution log
This commit is contained in:
parent
8e7ade1ac4
commit
96bb88b474
|
|
@ -12,7 +12,7 @@ namespace Elsa.Models
|
|||
{
|
||||
Variables = new Variables();
|
||||
Activities = new List<ActivityInstance>();
|
||||
ExecutionLog = new List<ExecutionLogEntry>();
|
||||
//ExecutionLog = new List<ExecutionLogEntry>();
|
||||
ScheduledActivities = new Stack<ScheduledActivity>();
|
||||
PostScheduledActivities = new Stack<ScheduledActivity>();
|
||||
ParentActivities = new Stack<string>();
|
||||
|
|
@ -39,7 +39,7 @@ namespace Elsa.Models
|
|||
set => _blockingActivities = new HashSet<BlockingActivity>(value, BlockingActivityEqualityComparer.Instance);
|
||||
}
|
||||
|
||||
public ICollection<ExecutionLogEntry> ExecutionLog { get; set; }
|
||||
//public ICollection<ExecutionLogEntry> ExecutionLog { get; set; }
|
||||
public WorkflowFault? Fault { get; set; }
|
||||
public Stack<ScheduledActivity> ScheduledActivities { get; set; }
|
||||
public Stack<ScheduledActivity> PostScheduledActivities { get; set; }
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@ namespace Elsa.Services
|
|||
if (IsScheduled)
|
||||
{
|
||||
context.WorkflowExecutionContext.WorkflowInstance.ParentActivities.Pop();
|
||||
IsScheduled = false;
|
||||
return Complete(context);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -70,7 +70,8 @@ namespace Elsa.Services.Models
|
|||
}
|
||||
|
||||
public bool DeleteCompletedInstances => WorkflowBlueprint.DeleteCompletedInstances;
|
||||
public ICollection<ExecutionLogEntry> ExecutionLog => WorkflowInstance.ExecutionLog;
|
||||
//public ICollection<ExecutionLogEntry> ExecutionLog => WorkflowInstance.ExecutionLog;
|
||||
public ICollection<ExecutionLogEntry> ExecutionLog => new List<ExecutionLogEntry>();
|
||||
public WorkflowStatus Status => WorkflowInstance.WorkflowStatus;
|
||||
public bool HasBlockingActivities => WorkflowInstance.BlockingActivities.Any();
|
||||
public object? WorkflowContext { get; set; }
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ namespace Elsa
|
|||
private const string Prefix = "elsa";
|
||||
private readonly string _connectionString;
|
||||
private readonly IDictionary<string, SqlConnection> _locks = new Dictionary<string, SqlConnection>();
|
||||
private readonly AutoResetEvent _mutex = new AutoResetEvent(true);
|
||||
private readonly AutoResetEvent _mutex = new(true);
|
||||
|
||||
public SqlLockProvider(string connectionString, ILogger<SqlLockProvider> logger)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue