Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Genesys PGR
Genesys Backend
Commits
2ee04e46
Commit
2ee04e46
authored
Feb 19, 2014
by
Matija Obreza
Browse files
Removed @Scheduled job
parent
da119175
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/genesys2/server/service/impl/GeoServiceImpl.java
View file @
2ee04e46
...
...
@@ -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
();
...
...
src/main/resources/spring/spring.properties
View file @
2ee04e46
...
...
@@ -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 * * ?
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment