Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
yangxiujun
/
paidan_demo
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 013a03db
authored
Nov 03, 2023
by
Ren Ping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:任务执行分布式改造
1 parent
f1b376d5
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
3 deletions
project-dispatch/src/main/java/com/dituhui/pea/dispatch/quartz/AutoDispatchJob.java
project-dispatch/src/main/resources/application-dev.yaml
project-dispatch/src/main/resources/application.yaml
project-dispatch/src/main/java/com/dituhui/pea/dispatch/quartz/AutoDispatchJob.java
View file @
013a03d
...
@@ -28,7 +28,6 @@ public class AutoDispatchJob extends QuartzJobBean {
...
@@ -28,7 +28,6 @@ public class AutoDispatchJob extends QuartzJobBean {
@Override
@Override
protected
void
executeInternal
(
JobExecutionContext
jobExecutionContext
)
throws
JobExecutionException
{
protected
void
executeInternal
(
JobExecutionContext
jobExecutionContext
)
throws
JobExecutionException
{
try
{
try
{
System
.
out
.
println
(
this
);
JobKey
jobKey
=
jobExecutionContext
.
getJobDetail
().
getKey
();
JobKey
jobKey
=
jobExecutionContext
.
getJobDetail
().
getKey
();
String
name
=
jobKey
.
getName
();
String
name
=
jobKey
.
getName
();
String
teamId
=
name
.
substring
(
TEAM_JOB_PREFIX
.
length
());
String
teamId
=
name
.
substring
(
TEAM_JOB_PREFIX
.
length
());
...
...
project-dispatch/src/main/resources/application-dev.yaml
View file @
013a03d
...
@@ -3,7 +3,7 @@ server:
...
@@ -3,7 +3,7 @@ server:
dispatch
:
dispatch
:
cron
:
cron
:
expr
:
0 2
0
8-19 * * ?
expr
:
0 2
6
8-19 * * ?
next-day-limit
:
2
next-day-limit
:
2
# expr: 0 */10 8-18 * * ?
# expr: 0 */10 8-18 * * ?
...
...
project-dispatch/src/main/resources/application.yaml
View file @
013a03d
...
@@ -73,7 +73,7 @@ spring:
...
@@ -73,7 +73,7 @@ spring:
job-store-type
:
jdbc
job-store-type
:
jdbc
#初始化表结构,初始化:always,再次重启改为 embedded
#初始化表结构,初始化:always,再次重启改为 embedded
jdbc
:
jdbc
:
initialize-schema
:
always
initialize-schema
:
embedded
seata
:
seata
:
application-id
:
${spring.application.name}
application-id
:
${spring.application.name}
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment