Merge pull request #6423 from abpframework/liangshiwei/patch-1

Set TaskCreationOptions.LongRunning for Kafka consumers
pull/6439/head
maliming 5 years ago committed by GitHub
commit 2762510460
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -118,10 +118,10 @@ namespace Volo.Abp.Kafka
catch (ConsumeException ex)
{
Logger.LogException(ex, LogLevel.Warning);
AsyncHelper.RunSync(() => ExceptionNotifier.NotifyAsync(ex, logLevel: LogLevel.Warning));
await ExceptionNotifier.NotifyAsync(ex, logLevel: LogLevel.Warning);
}
}
});
}, TaskCreationOptions.LongRunning);
}
protected virtual async Task HandleIncomingMessage(ConsumeResult<string, byte[]> consumeResult)

Loading…
Cancel
Save