public async Task ReGenerateAllProviderDashboards([QueueTrigger(QueueNames.GenerateAllProviderDashboardQueueName, Connection = "QueueStorage")] string message, TextWriter log) { const string individualJobName = "MultiProviderDashboardGeneratorJob"; if (_jobsConfig.DisabledJobs.Contains(individualJobName)) { _logger.LogDebug($"{individualJobName} is disabled, skipping ..."); return; } try { _logger.LogInformation($"Start {JobName}"); await _projectionService.ReBuildAllDashboardsAsync(); _logger.LogInformation($"Finished {JobName}"); } catch (JsonException ex) { _logger.LogError(ex, "Unable to deserialise event: {eventBody}", message); throw; } catch (Exception ex) { _logger.LogError(ex, $"Unable to run {JobName}."); throw; } }