Update campaign handling
This commit is contained in:
@ -38,12 +38,12 @@ namespace Hcs.WebApp.BackgroundServices
|
||||
try
|
||||
{
|
||||
var executor = executorFactory.CreateExecutor(client, operation);
|
||||
await headquartersService.SetOperationStarted(operation.Id);
|
||||
messageGuid = await executor.ExecuteAsync(stoppingToken);
|
||||
}
|
||||
catch
|
||||
catch (Exception e)
|
||||
{
|
||||
// TODO: Добавить таймауты и макс количество попыток выполнения операции
|
||||
state.EnqueueOperation(operation);
|
||||
await headquartersService.SetOperationEndedWithFail(operation.Id, e.Message);
|
||||
}
|
||||
|
||||
if (!string.IsNullOrEmpty(messageGuid))
|
||||
|
||||
Reference in New Issue
Block a user