Skip to content

Commit

Permalink
Decrease the interval of updating current quotes due to Yahoo API cha…
Browse files Browse the repository at this point in the history
…nges
  • Loading branch information
buchen committed Nov 5, 2017
1 parent 57fe9a4 commit 457a4de
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -562,9 +562,9 @@ private void scheduleOnlineUpdateJobs()
checkInvestmentPlans.startAfter(initialQuoteUpdate);
checkInvestmentPlans.schedule(1100);

int tenMinutes = 1000 * 60 * 10;
Job job = new UpdateQuotesJob(client, EnumSet.of(UpdateQuotesJob.Target.LATEST)).repeatEvery(tenMinutes);
job.schedule(tenMinutes);
int thirtyMinutes = 1000 * 60 * 30;
Job job = new UpdateQuotesJob(client, EnumSet.of(UpdateQuotesJob.Target.LATEST)).repeatEvery(thirtyMinutes);
job.schedule(thirtyMinutes);
regularJobs.add(job);

int sixHours = 1000 * 60 * 60 * 6;
Expand Down

0 comments on commit 457a4de

Please sign in to comment.