Skip to content

Commit

Permalink
changed default cron expression of GRSciCollCountsUpdaterService
Browse files Browse the repository at this point in the history
  • Loading branch information
marcos-lg committed Jul 13, 2023
1 parent 59d7955 commit eaaede0
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@
@Service
@Endpoint(id = "grscicollCounts")
@Slf4j
public class CountsUpdaterService {
public class GRSciCollCountsUpdaterService {

private final InstitutionMapper institutionMapper;
private final CollectionMapper collectionMapper;
private final OccurrenceWsSearchClient occurrenceWsSearchClient;

@Autowired
public CountsUpdaterService(
public GRSciCollCountsUpdaterService(
InstitutionMapper institutionMapper,
CollectionMapper collectionMapper,
@Value("${api.root.url}") String apiRootUrl) {
Expand All @@ -59,7 +59,7 @@ public void updateGRSciCollCountsEndpoint() {
updateCounts();
}

@Scheduled(cron = "${grscicoll.counts.cron:* * 8-9 * * 1-5}")
@Scheduled(cron = "${grscicoll.counts.cron:0 0 8 * * 1-5}")
@Transactional
public void scheduleUpdateCounts() {
updateCounts();
Expand Down

0 comments on commit eaaede0

Please sign in to comment.