Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
Z
zhmes-agecal
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
耿迪迪
zhmes-agecal
Commits
95befd32
Commit
95befd32
authored
Sep 24, 2025
by
wanghao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1 指令指令完成,但是 没有检测到机械臂完成。
parent
34db516e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
DeviceTaskScheduler.java
...main/java/com/zehong/system/task/DeviceTaskScheduler.java
+2
-2
No files found.
zhmes-agecal-system/src/main/java/com/zehong/system/task/DeviceTaskScheduler.java
View file @
95befd32
...
@@ -33,7 +33,7 @@ public class DeviceTaskScheduler {
...
@@ -33,7 +33,7 @@ public class DeviceTaskScheduler {
private
static
final
String
THREAD_GROUP
=
"DEVICE_THREAD_GROUP"
;
private
static
final
String
THREAD_GROUP
=
"DEVICE_THREAD_GROUP"
;
// 常量:Cron周期(3分钟)、任务有效期(7天)
// 常量:Cron周期(3分钟)、任务有效期(7天)
private
static
final
String
CRON_EXPRESSION
=
"0 0/
3
* * * ?"
;
private
static
final
String
CRON_EXPRESSION
=
"0 0/
5
* * * ?"
;
private
static
final
int
TASK_VALID_DAYS
=
7
;
private
static
final
int
TASK_VALID_DAYS
=
7
;
/**
/**
* 创建设备监控任务(入口:增加调度器健康检查、任务去重)
* 创建设备监控任务(入口:增加调度器健康检查、任务去重)
...
@@ -128,7 +128,7 @@ public class DeviceTaskScheduler {
...
@@ -128,7 +128,7 @@ public class DeviceTaskScheduler {
.
requestRecovery
(
true
)
.
requestRecovery
(
true
)
.
build
();
.
build
();
Date
executeTime
=
Date
.
from
(
Instant
.
now
().
plus
(
1
5
,
ChronoUnit
.
MINUTES
));
Date
executeTime
=
Date
.
from
(
Instant
.
now
().
plus
(
1
7
,
ChronoUnit
.
MINUTES
));
SimpleTrigger
trigger
=
TriggerBuilder
.
newTrigger
()
SimpleTrigger
trigger
=
TriggerBuilder
.
newTrigger
()
.
withIdentity
(
triggerKey
)
.
withIdentity
(
triggerKey
)
.
forJob
(
jobKey
)
.
forJob
(
jobKey
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment