Skip to content

Commit

Permalink
Merge pull request #221 from code4romania/feature/disable-crawling-vm…
Browse files Browse the repository at this point in the history
…-stats

disable download of stats from vm
  • Loading branch information
idormenco committed Jul 11, 2024
2 parents e396bb3 + 94ef332 commit 7502068
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/ElectionResults.Hangfire/Jobs/Installer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ public static WebApplication WithJobs(this WebApplication app)

// recurringJobManager.AddOrUpdate<DownloadAndProcessTurnoutResultsJob>($"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<DownloadVoteMonitorStatisticsJob>("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<DownloadVoteMonitorStatisticsJob>("vote-monitor-statistics", x => x.Run(electionRoundIds, voteMonitorElectionRoundId, CancellationToken.None), "*/15 * * * *");

return app;
}
Expand Down

0 comments on commit 7502068

Please sign in to comment.