Skip to content
This repository has been archived by the owner on Sep 1, 2024. It is now read-only.

Commit

Permalink
Exchange servise
Browse files Browse the repository at this point in the history
  • Loading branch information
l00pss committed Mar 20, 2024
1 parent a88c599 commit 22a7dba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

@EnableDiscoveryClient
@SpringBootApplication
@EnableFeignClients
@EntityScan(basePackages = "com/intellibucket/onnetwork/exchange/dataaccess/model/entity")
public class ExchangeServiceApplication {
public static void main(String[] args) {
SpringApplication.run(ExchangeServiceApplication.class, args);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public class FreeCurrencyAPIScheduler implements AbstractCurrencyScheduler {


@Override
@Scheduled(fixedRate = 1000)
@Scheduled(fixedRateString = "${ws.values.scheduler.latest-rate}")
@JExecutionTime
public void latestRateScheduler() {
log.info("Latest rate scheduler started");
Expand All @@ -37,7 +37,7 @@ public void latestRateScheduler() {
}

@Override
@Scheduled(cron = "0 0 0 1 * ?")
@Scheduled(cron = "${ws.values.scheduler.exchange-info-rate}")
//This scheduler must be executed every 1 month
public void exchangeInfoScheduler() {
log.info("Historical rate scheduler");
Expand Down

0 comments on commit 22a7dba

Please sign in to comment.