Commit 2ee04e46 authored by Matija Obreza's avatar Matija Obreza

Removed @Scheduled job

parent da119175
......@@ -40,7 +40,6 @@ import org.genesys2.server.service.ContentService;
import org.genesys2.server.service.GeoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Sort;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
......@@ -191,7 +190,6 @@ public class GeoServiceImpl implements GeoService {
@Override
@Transactional(readOnly = false)
@Scheduled(cron = "${scheduler.country.data.cron}")
public void updateCountryData() throws IOException {
// update current countries
updateGeoNamesCountries();
......
......@@ -88,12 +88,3 @@ executor.queue.capacity=100
#scheduler properties
scheduler.max.pool.size=16
# second, minute, hour, day, month, weekday
# Month and weekday names can be given as the first three letters of the English names.
# call country updater every six hours
scheduler.country.data.cron=10 47 */6 * * ?
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment