Skip to content

Commit

Permalink
fix: setting the runid per trigger, otherwise time schedules will use…
Browse files Browse the repository at this point in the history
… same id
  • Loading branch information
pksorensen committed May 12, 2022
1 parent 6dedba1 commit af4bfbc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/WorkflowEngine.Hangfire/HangfireWorkflowExecutor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ public async ValueTask<object> ExecuteAsync(IRunContext run, IWorkflow workflow,
/// <returns></returns>
public async ValueTask<object> TriggerAsync(ITriggerContext context)
{
context.RunId = context.RunId == Guid.Empty? Guid.NewGuid() : context.RunId;
runContextAccessor.RunContext = context;
var action = await executor.Trigger(context);

Expand Down

0 comments on commit af4bfbc

Please sign in to comment.