Complete campaign flow
This commit is contained in:
@ -37,12 +37,12 @@ namespace Hcs.WebApp.BackgroundServices
|
||||
try
|
||||
{
|
||||
var executor = executorFactory.CreateExecutor(scope, client, operation);
|
||||
await headquartersService.SetOperationStarted(operation.Id);
|
||||
await headquartersService.SetOperationStartedAsync(operation.Id);
|
||||
messageGuid = await executor.ExecuteAsync(stoppingToken);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
await headquartersService.SetOperationEndedWithFail(operation.Id, e.Message);
|
||||
await headquartersService.SetOperationEndedWithFailAsync(operation.Id, e.Message);
|
||||
}
|
||||
|
||||
if (!string.IsNullOrEmpty(messageGuid))
|
||||
|
||||
Reference in New Issue
Block a user