public async Task GenerateAllVacancyApplicationsAsync([QueueTrigger(QueueNames.GenerateAllVacancyApplicationsQueueName, Connection = "QueueStorage")]
                                                              string message, TextWriter log)
        {
            if (_jobsConfig.DisabledJobs.Contains(JobName))
            {
                _logger.LogDebug($"{JobName} is disabled, skipping ...");
                return;
            }

            try
            {
                if (!string.IsNullOrEmpty(message))
                {
                    _logger.LogInformation($"Start {JobName}");

                    var allVacancyReferences = (await _query.GetAllVacancyReferencesAsync()).ToList();

                    _logger.LogInformation($"Regenerating {allVacancyReferences.Count()} VacancyApplications queryStore documents for:\n{string.Join(Environment.NewLine, allVacancyReferences)}");

                    foreach (var vacancyReference in allVacancyReferences)
                    {
                        await _projectionService.UpdateVacancyApplicationsAsync(vacancyReference);
                    }

                    _logger.LogInformation($"Finished {JobName}");
                }
            }
            catch (Exception ex)
            {
                _logger.LogError(ex, $"Unable to run {JobName}.");
                throw;
            }
        }
        public async Task SpikeAsync([QueueTrigger("test-queue", Connection = "QueueStorage")] string message, TextWriter log)
        {
            if (_jobsConfig.DisabledJobs.Contains(JobName))
            {
                _logger.LogDebug($"{JobName} is disabled, skipping ...");
                return;
            }

            var employerAccountId = Environment.GetEnvironmentVariable("EmployerAccount");
            //var result = await _query.GetEmployerOwnedVacancySummariesByEmployerAccountAsync(employerAccountId);
            var result = await _query.GetAllVacancyReferencesAsync();
        }