Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
GeoFlyApi
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
GeoFly
GeoFlyApi
Commits
c95e40fd
Commit
c95e40fd
authored
Dec 10, 2025
by
gdj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复条件任务不执行bug。
parent
05c30570
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
sample/src/main/java/com/dji/sample/wayline/service/impl/FlightTaskServiceImpl.java
+2
-1
sample/src/main/java/com/dji/sample/wayline/service/impl/WaylineRedisServiceImpl.java
+1
-1
No files found.
sample/src/main/java/com/dji/sample/wayline/service/impl/FlightTaskServiceImpl.java
View file @
c95e40fd
...
...
@@ -558,7 +558,8 @@ public class FlightTaskServiceImpl extends AbstractWaylineService implements IFl
log
.
info
(
"ready task list:{}"
,
Arrays
.
toString
(
flightIds
.
toArray
())
);
// Check conditional task blocking status.
String
blockedId
=
waylineRedisService
.
getBlockedWaylineJobId
(
response
.
getGateway
());
if
(!
StringUtils
.
hasText
(
blockedId
))
{
// fix: 修复条件任务不执行bug
if
(
StringUtils
.
hasText
(
blockedId
))
{
return
null
;
}
...
...
sample/src/main/java/com/dji/sample/wayline/service/impl/WaylineRedisServiceImpl.java
View file @
c95e40fd
...
...
@@ -70,7 +70,7 @@ public class WaylineRedisServiceImpl implements IWaylineRedisService {
throw
new
RuntimeException
(
"Job id can't be null."
);
}
RedisOpsUtils
.
setWithExpire
(
RedisConst
.
WAYLINE_JOB_CONDITION_PREFIX
+
waylineJob
.
getJobId
(),
waylineJob
,
(
Duration
.
between
(
waylineJob
.
getEndTime
(),
LocalDateTime
.
now
()).
getSeconds
()));
Math
.
abs
(
Duration
.
between
(
waylineJob
.
getEndTime
(),
LocalDateTime
.
now
()).
getSeconds
()));
}
@Override
...
...
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