Skip to content

Commit

Permalink
fix jobsender send job change modify time
Browse files Browse the repository at this point in the history
  • Loading branch information
yuan.cheng committed Dec 5, 2016
1 parent f7e1d3f commit 2df365b
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ private List<JobPo> fetchJob(String taskTrackerNodeGroup, String taskTrackerIden

// IMPORTANT: 这里要先切换队列
try {
jobPo.setGmtModified(jobPo.getGmtCreated());
jobPo.setGmtModified(SystemClock.now());
appContext.getExecutingJobQueue().add(jobPo);
} catch (DupEntryException e) {
LOGGER.warn("ExecutingJobQueue already exist:" + JSON.toJSONString(jobPo));
Expand Down
37 changes: 26 additions & 11 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,11 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.sonatype.oss</groupId>
<artifactId>oss-parent</artifactId>
<version>7</version>
</parent>

<groupId>com.github.ltsopensource</groupId>
<artifactId>lts-parent</artifactId>
<packaging>pom</packaging>
<version>1.7.0-SNAPSHOT</version>
<url>https://github.com/ltsopensource/light-task-scheduler.git</url>
<url>ssh://[email protected].com.cn:62222/stock/light-task-scheduler.git</url>
<modules>
<module>lts-core</module>
<module>lts-jobtracker</module>
Expand Down Expand Up @@ -358,16 +352,37 @@
</licenses>

<scm>
<connection>scm:git:https://github.com/ltsopensource/light-task-scheduler.git</connection>
<developerConnection>scm:git:https://github.com/ltsopensource/light-task-scheduler.git</developerConnection>
<url>https://github.com/ltsopensource/light-task-scheduler.git</url>
<connection>scm:git:ssh://[email protected].com.cn:62222/stock/light-task-scheduler.git</connection>
<developerConnection>scm:git:ssh://[email protected].com.cn:62222/stock/light-task-scheduler.git</developerConnection>
<url>ssh://[email protected].com.cn:62222/stock/light-task-scheduler.git</url>
</scm>

<distributionManagement>
<repository>
<id>repo-jrj-releases</id>
<url>http://nexus.jrj.com.cn/nexus/content/repositories/releases</url>
</repository>
<snapshotRepository>
<id>snapshots</id>
<url>http://nexus.jrj.com.cn/nexus/content/repositories/snapshots</url>
</snapshotRepository>
</distributionManagement>
<developers>
<developer>
<id>hugui.hg</id>
<name>hugui</name>
<email>[email protected]</email>
</developer>
</developers>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.5.3</version>
<configuration>
<tagNameFormat>v@{project.version}</tagNameFormat>
</configuration>
</plugin>
</plugins>
</build>
</project>

0 comments on commit 2df365b

Please sign in to comment.