diff --git a/code/Infrastructure/Verticals/Jobs/JobChainingListener.cs b/code/Infrastructure/Verticals/Jobs/JobChainingListener.cs index b8d698b..b9f5c8c 100644 --- a/code/Infrastructure/Verticals/Jobs/JobChainingListener.cs +++ b/code/Infrastructure/Verticals/Jobs/JobChainingListener.cs @@ -19,7 +19,7 @@ public class JobChainingListener : IJobListener public async Task JobWasExecuted(IJobExecutionContext context, JobExecutionException? jobException, CancellationToken cancellationToken) { - if (string.IsNullOrEmpty(_nextJobName)) + if (string.IsNullOrEmpty(_nextJobName) || context.JobDetail.Key.Name == _nextJobName) { return; }