From 94ef3326ff20229d6c38084e02a1fa1b71ca218e Mon Sep 17 00:00:00 2001 From: Ion Dormenco Date: Thu, 11 Jul 2024 11:18:22 +0300 Subject: [PATCH] disable download of stats from vm --- src/ElectionResults.Hangfire/Jobs/Installer.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/ElectionResults.Hangfire/Jobs/Installer.cs b/src/ElectionResults.Hangfire/Jobs/Installer.cs index d9113ac..cf2e20f 100644 --- a/src/ElectionResults.Hangfire/Jobs/Installer.cs +++ b/src/ElectionResults.Hangfire/Jobs/Installer.cs @@ -34,11 +34,11 @@ public static WebApplication WithJobs(this WebApplication app) // recurringJobManager.AddOrUpdate($"europarlamentare09062024-data-processor", x => x.Run("europarlamentare09062024", 51, true, StageCode.PROV), "*/5 * * * *"); - var electionRoundIds = crawlerOptions.Value.ElectionRounds.Select(x => x.ElectionRoundId).ToList(); - var voteMonitorElectionRoundId = crawlerOptions.Value.ElectionRoundId; - - recurringJobManager - .AddOrUpdate("vote-monitor-statistics", x => x.Run(electionRoundIds, voteMonitorElectionRoundId, CancellationToken.None), "*/15 * * * *"); + // var electionRoundIds = crawlerOptions.Value.ElectionRounds.Select(x => x.ElectionRoundId).ToList(); + // var voteMonitorElectionRoundId = crawlerOptions.Value.ElectionRoundId; + // + // recurringJobManager + // .AddOrUpdate("vote-monitor-statistics", x => x.Run(electionRoundIds, voteMonitorElectionRoundId, CancellationToken.None), "*/15 * * * *"); return app; }