Skip to content

Commit f462d6e

Browse files
committed
Add post middleware in more places
1 parent cedc151 commit f462d6e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/WorkflowCore/Services/WorkflowExecutor.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,7 @@ private async Task DetermineNextExecutionTime(WorkflowInstance workflow, Workflo
222222
if (!pointer.SleepUntil.HasValue)
223223
{
224224
workflow.NextExecution = 0;
225+
await RunPostMiddleware(workflow, def);
225226
return;
226227
}
227228

@@ -237,6 +238,7 @@ private async Task DetermineNextExecutionTime(WorkflowInstance workflow, Workflo
237238
if (!pointer.SleepUntil.HasValue)
238239
{
239240
workflow.NextExecution = 0;
241+
await RunPostMiddleware(workflow, def);
240242
return;
241243
}
242244

0 commit comments

Comments
 (0)