Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Random retry(?) behavior with <task:scheduled-tasks> [SPR-11020] #15648

Closed
spring-issuemaster opened this issue Oct 22, 2013 · 3 comments
Closed

Random retry(?) behavior with <task:scheduled-tasks> [SPR-11020] #15648

spring-issuemaster opened this issue Oct 22, 2013 · 3 comments

Comments

@spring-issuemaster
Copy link
Collaborator

@spring-issuemaster spring-issuemaster commented Oct 22, 2013

Diego Plentz opened SPR-11020 and commented

I'm seeing a weird(random?) behavior when using task:scheduled with cron. Following my log file, the job class and the application.xml config part.

The app.xml part.

<task:scheduled-tasks>
	<task:scheduled ref="testJob" method="gogo" cron="0 0 4 * * ?" />
</task:scheduled-tasks> 

It looks like the first run goes well, but then around 8AM it go nuts.

[WARN] 22-10-2013 04:00:18 [com.test.jobs.TestJob] nothing new
[WARN] 22-10-2013 08:21:11 [com.test.jobs.TestJob] nothing new
[WARN] 22-10-2013 08:21:13 [com.test.jobs.TestJob] nothing new
[WARN] 22-10-2013 08:31:31 [com.test.jobs.TestJob] nothing new
[WARN] 22-10-2013 08:31:32 [com.test.jobs.TestJob] nothing new
[WARN] 22-10-2013 08:41:10 [com.test.jobs.TestJob] nothing new
[WARN] 22-10-2013 08:41:12 [com.test.jobs.TestJob] nothing new
[WARN] 22-10-2013 08:50:41 [com.test.jobs.TestJob] nothing new
[WARN] 22-10-2013 08:50:43 [com.test.jobs.TestJob] nothing new
[WARN] 22-10-2013 09:02:49 [com.test.jobs.TestJob] nothing new
[WARN] 22-10-2013 09:02:49 [com.test.jobs.TestJob] nothing new
[WARN] 22-10-2013 09:34:18 [com.test.jobs.TestJob] nothing new
[WARN] 22-10-2013 09:34:19 [com.test.jobs.TestJob] nothing new
[WARN] 22-10-2013 09:45:55 [com.test.jobs.TestJob] nothing new
[WARN] 22-10-2013 09:45:57 [com.test.jobs.TestJob] nothing new
[WARN] 22-10-2013 09:50:02 [com.test.jobs.TestJob] nothing new
[WARN] 22-10-2013 09:50:03 [com.test.jobs.TestJob] nothing new
[WARN] 22-10-2013 10:11:23 [com.test.jobs.TestJob] nothing new
[WARN] 22-10-2013 10:11:24 [com.test.jobs.TestJob] nothing new
[WARN] 22-10-2013 10:42:34 [com.test.jobs.TestJob] nothing new
[WARN] 22-10-2013 10:42:36 [com.test.jobs.TestJob] nothing new
[WARN] 22-10-2013 11:05:21 [com.test.jobs.TestJob] nothing new
[WARN] 22-10-2013 11:05:24 [com.test.jobs.TestJob] nothing new
[WARN] 22-10-2013 11:07:37 [com.test.jobs.TestJob] nothing new
[WARN] 22-10-2013 11:07:40 [com.test.jobs.TestJob] nothing new
[WARN] 22-10-2013 11:30:59 [com.test.jobs.TestJob] nothing new
[WARN] 22-10-2013 11:31:01 [com.test.jobs.TestJob] nothing new
[WARN] 22-10-2013 11:34:02 [com.test.jobs.TestJob] nothing new
[WARN] 22-10-2013 11:34:04 [com.test.jobs.TestJob] nothing new

The job class

package com.test.jobs;

import org.apache.log4j.Logger;

@Component
public class TestJob {

	private static final Logger logger = Logger.getLogger(TestJob.class);

	public void gogogo() {
		logger.warn("nothing new");
		return;
	}

}

Maybe related to #11526


Affects: 3.2.1

@spring-issuemaster
Copy link
Collaborator Author

@spring-issuemaster spring-issuemaster commented Oct 30, 2013

Diego Plentz commented

It really looks to be a lot random.

[WARN] 30-10-2013 04:00:09 [com.test.jobs.TestJob] nothing new
[WARN] 30-10-2013 06:30:17 [com.test.jobs.TestJob] nothing new
[WARN] 30-10-2013 06:30:26 [com.test.jobs.TestJob] nothing new
[WARN] 30-10-2013 07:36:18 [com.test.jobs.TestJob] nothing new
[WARN] 30-10-2013 07:36:54 [com.test.jobs.TestJob] nothing new
[WARN] 30-10-2013 07:37:23 [com.test.jobs.TestJob] nothing new
[WARN] 30-10-2013 07:37:33 [com.test.jobs.TestJob] nothing new
[WARN] 30-10-2013 07:50:53 [com.test.jobs.TestJob] nothing new
[WARN] 30-10-2013 07:51:02 [com.test.jobs.TestJob] nothing new
[WARN] 30-10-2013 08:41:56 [com.test.jobs.TestJob] nothing new
[WARN] 30-10-2013 08:42:12 [com.test.jobs.TestJob] nothing new
[WARN] 30-10-2013 09:08:43 [com.test.jobs.TestJob] nothing new
[WARN] 30-10-2013 09:08:51 [com.test.jobs.TestJob] nothing new
[WARN] 30-10-2013 09:20:01 [com.test.jobs.TestJob] nothing new
[WARN] 30-10-2013 09:20:09 [com.test.jobs.TestJob] nothing new
[WARN] 30-10-2013 09:31:40 [com.test.jobs.TestJob] nothing new
[WARN] 30-10-2013 09:31:58 [com.test.jobs.TestJob] nothing new
[WARN] 30-10-2013 09:37:31 [com.test.jobs.TestJob] nothing new
[WARN] 30-10-2013 09:37:39 [com.test.jobs.TestJob] nothing new
[WARN] 30-10-2013 10:21:45 [com.test.jobs.TestJob] nothing new
[WARN] 30-10-2013 10:22:13 [com.test.jobs.TestJob] nothing new
[WARN] 30-10-2013 10:22:21 [com.test.jobs.TestJob] nothing new
[WARN] 30-10-2013 10:22:34 [com.test.jobs.TestJob] nothing new
[WARN] 30-10-2013 10:58:49 [com.test.jobs.TestJob] nothing new
[WARN] 30-10-2013 10:59:19 [com.test.jobs.TestJob] nothing new
[WARN] 30-10-2013 10:59:24 [com.test.jobs.TestJob] nothing new
[WARN] 30-10-2013 10:59:32 [com.test.jobs.TestJob] nothing new
[WARN] 30-10-2013 11:27:13 [com.test.jobs.TestJob] nothing new
[WARN] 30-10-2013 11:27:23 [com.test.jobs.TestJob] nothing new
[WARN] 30-10-2013 11:33:28 [com.test.jobs.TestJob] nothing new
[WARN] 30-10-2013 11:33:38 [com.test.jobs.TestJob] nothing new
[WARN] 30-10-2013 11:40:31 [com.test.jobs.TestJob] nothing new
[WARN] 30-10-2013 11:40:38 [com.test.jobs.TestJob] nothing new
[WARN] 30-10-2013 11:42:47 [com.test.jobs.TestJob] nothing new
[WARN] 30-10-2013 11:43:01 [com.test.jobs.TestJob] nothing new
[WARN] 30-10-2013 11:44:30 [com.test.jobs.TestJob] nothing new
[WARN] 30-10-2013 11:44:39 [com.test.jobs.TestJob] nothing new
[WARN] 30-10-2013 11:48:03 [com.test.jobs.TestJob] nothing new
[WARN] 30-10-2013 11:48:14 [com.test.jobs.TestJob] nothing new
[WARN] 30-10-2013 11:48:47 [com.test.jobs.TestJob] nothing new
[WARN] 30-10-2013 11:48:55 [com.test.jobs.TestJob] nothing new
[WARN] 30-10-2013 11:49:03 [com.test.jobs.TestJob] nothing new
[WARN] 30-10-2013 11:49:13 [com.test.jobs.TestJob] nothing new
[WARN] 30-10-2013 11:49:22 [com.test.jobs.TestJob] nothing new
[WARN] 30-10-2013 11:58:04 [com.test.jobs.TestJob] nothing new
[WARN] 30-10-2013 11:58:15 [com.test.jobs.TestJob] nothing new
[WARN] 30-10-2013 12:08:54 [com.test.jobs.TestJob] nothing new
[WARN] 30-10-2013 12:09:04 [com.test.jobs.TestJob] nothing new
[WARN] 30-10-2013 12:09:29 [com.test.jobs.TestJob] nothing new
[WARN] 30-10-2013 12:09:39 [com.test.jobs.TestJob] nothing new
[WARN] 30-10-2013 12:11:22 [com.test.jobs.TestJob] nothing new
[WARN] 30-10-2013 12:12:22 [com.test.jobs.TestJob] nothing new
[WARN] 30-10-2013 12:16:51 [com.test.jobs.TestJob] nothing new
[WARN] 30-10-2013 12:17:00 [com.test.jobs.TestJob] nothing new
[WARN] 30-10-2013 12:58:28 [com.test.jobs.TestJob] nothing new
[WARN] 30-10-2013 12:58:39 [com.test.jobs.TestJob] nothing new
[WARN] 30-10-2013 12:59:34 [com.test.jobs.TestJob] nothing new
[WARN] 30-10-2013 13:02:27 [com.test.jobs.TestJob] nothing new
[WARN] 30-10-2013 13:17:06 [com.test.jobs.TestJob] nothing new
[WARN] 30-10-2013 13:17:19 [com.test.jobs.TestJob] nothing new
@spring-issuemaster
Copy link
Collaborator Author

@spring-issuemaster spring-issuemaster commented Nov 29, 2013

Diego Plentz commented

Guys, you can close this. It was an embarrassing app bug.

@spring-issuemaster
Copy link
Collaborator Author

@spring-issuemaster spring-issuemaster commented Jan 12, 2019

Bulk closing outdated, unresolved issues. Please, reopen if still relevant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.