Skip to content

Commit

Permalink
Merge pull request #4008 from KHassanin/LCSD-6624-1
Browse files Browse the repository at this point in the history
LCSD-6624 - Change the timing for services
  • Loading branch information
KyleKayfish committed Oct 11, 2023
2 parents 8a35bf2 + 77d41e3 commit 0575bf1
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions orgbook-service/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -210,9 +210,12 @@ private void SetupHangfireJobs(IApplicationBuilder app)
GenericRequest id = new GenericRequest() {
Id = Guid.NewGuid().ToString()
};
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.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());
}
}
catch (Exception e)
Expand Down

0 comments on commit 0575bf1

Please sign in to comment.