Subversion Repositories SmartDukaan

Rev

Rev 24168 | Rev 26228 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 24168 Rev 25040
Line 120... Line 120...
120
	@Value("${prod}")
120
	@Value("${prod}")
121
	private boolean prod;
121
	private boolean prod;
122
 
122
 
123
	private static final Logger LOGGER = LogManager.getLogger(CronController.class);
123
	private static final Logger LOGGER = LogManager.getLogger(CronController.class);
124
 
124
 
125
	@Scheduled(cron = "0 45 6 * * *")
-
 
126
	public void executeJob() throws Exception {
125
	public void executeJob() throws Exception {
127
		if (prod) {
126
		if (prod) {
128
			String uri = "/cron/process-schemes";
127
			String uri = "/cron/process-schemes";
129
			restClient.get(SchemeType.HTTP, "localhost", 8080, uri, null);
128
			restClient.get(SchemeType.HTTP, "localhost", 8080, uri, null);
130
		}
129
		}