Changed Tradeable update service frequency.
This commit is contained in:
parent
9dd0db14e0
commit
fe7b6f2906
|
@ -46,7 +46,7 @@ public class TradeableUpdateService {
|
|||
updatePublicTradeables();
|
||||
}
|
||||
|
||||
@Scheduled(cron = "@midnight")
|
||||
@Scheduled(cron = "0 0 0,6,12,18 * * *")
|
||||
public void scheduledUpdate() {
|
||||
updatePublicTradeables();
|
||||
}
|
||||
|
|
|
@ -136,6 +136,7 @@ public class UserService {
|
|||
}
|
||||
|
||||
@Scheduled(cron = "@midnight")
|
||||
@Transactional
|
||||
public void removeExpiredActivationTokens() {
|
||||
activationTokenRepository.deleteAllByExpiresAtBefore(LocalDateTime.now(ZoneOffset.UTC));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue