Skip to content
This repository was archived by the owner on Jan 23, 2025. It is now read-only.

Change getTimestamp to use internal date #56

Conversation

deedee
Copy link
Contributor

@deedee deedee commented May 31, 2018

No description provided.

@@ -38,7 +38,7 @@
* @version 1.0
*
*/
@DelayStart("20s")
@DelayStart("19s")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@deedee any reason to change this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If all jobs start on same time ConcurrentModificationException sometime occur on getMatchesWithRegistrationPhaseStartedIds or getChangedChallengeIds

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@deedee it is from dropwizard framework?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure, that exception came from jdbi while mapping the result. I'm still looking at the cause, seems related to job execution. This change eliminate startup issue.

@@ -117,8 +117,7 @@ public void doJob(JobExecutionContext context) throws JobExecutionException {

logger.info("The last run timestamp for challenges listing job is:" + timestamp);

String currentTime = DATE_FORMAT.format(this.challengeListingFeederManager.getTimestamp());

String currentTime = DATE_FORMAT.format(new Date());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@deedee why this is special?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

because it just simply use system date?

@skyhit skyhit merged commit 207fd08 into topcoder-archive:listing-detail-indexes Jun 1, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants