Skip to content

Commit

Permalink
Revert "LCSD-6624 - Change the timing for services"
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleKayfish authored Nov 6, 2023
1 parent 4bf8c1e commit 4a4f896
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 4a4f896

Please sign in to comment.