We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Local messages need to increase the last execution time to avoid repeated execution of messages
public async Task<IEnumerable<IntegrationEventLog>> RetrieveEventLogsFailedToPublishAsync(int retryBatchSize = 200, int maxRetryTimes = 10) { var result = await _eventLogContext.EventLogs .Where(e => (e.State == IntegrationEventStates.PublishedFailed || e.State == IntegrationEventStates.InProgress) && e.TimesSent <= maxRetryTimes) .OrderBy(o => o.CreationTime) .Take(retryBatchSize) .ToListAsync(); if (result.Any()) { _eventTypes ??= _serviceProvider.GetRequiredService<IIntegrationEventBus>().GetAllEventTypes() .Where(type => typeof(IIntegrationEvent).IsAssignableFrom(type)); return result.OrderBy(o => o.CreationTime) .Select(e => e.DeserializeJsonContent(_eventTypes.First(t => t.Name == e.EventTypeShortName))); } return result; }
The text was updated successfully, but these errors were encountered:
zhenlei520
Successfully merging a pull request may close this issue.
Local messages need to increase the last execution time to avoid repeated execution of messages
The text was updated successfully, but these errors were encountered: