Skip to content

Commit

Permalink
Merge pull request #4026 from bcgov/revert-4008-LCSD-6624-1
Browse files Browse the repository at this point in the history
Revert "LCSD-6624 - Change the timing for services"
  • Loading branch information
KyleKayfish authored Nov 6, 2023
2 parents 4bf8c1e + 4a4f896 commit a337ba6
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions orgbook-service/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -210,12 +210,9 @@ private void SetupHangfireJobs(IApplicationBuilder app)
GenericRequest id = new GenericRequest() {
Id = Guid.NewGuid().ToString()
};
RecurringJob.AddOrUpdate(() => new OrgBookController(Configuration, _loggerFactory).SyncLicencesToOrgbook(id, null), Cron.MinuteInterval(5));
RecurringJob.AddOrUpdate(() => new OrgBookController(Configuration, _loggerFactory).SyncOrgbookToLicences(id, null), Cron.MinuteInterval(5));
RecurringJob.AddOrUpdate(() => new OrgBookController(Configuration, _loggerFactory).SyncOrgbookToAccounts(id, null), Cron.MinuteInterval(10));
//RecurringJob.AddOrUpdate(() => new OrgBookController(Configuration, _loggerFactory).SyncLicencesToOrgbook(id, null), Cron.Hourly());
//RecurringJob.AddOrUpdate(() => new OrgBookController(Configuration, _loggerFactory).SyncOrgbookToLicences(id, null), Cron.Hourly());
//RecurringJob.AddOrUpdate(() => new OrgBookController(Configuration, _loggerFactory).SyncOrgbookToAccounts(id, null), Cron.Daily());
RecurringJob.AddOrUpdate(() => new OrgBookController(Configuration, _loggerFactory).SyncLicencesToOrgbook(id, null), Cron.Hourly());
RecurringJob.AddOrUpdate(() => new OrgBookController(Configuration, _loggerFactory).SyncOrgbookToLicences(id, null), Cron.Hourly());
RecurringJob.AddOrUpdate(() => new OrgBookController(Configuration, _loggerFactory).SyncOrgbookToAccounts(id, null), Cron.Daily());
}
}
catch (Exception e)
Expand Down

0 comments on commit a337ba6

Please sign in to comment.