Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dinky
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
wangpeng
dinky
Commits
da09d9e4
Unverified
Commit
da09d9e4
authored
Dec 14, 2022
by
zhu-mingye
Committed by
GitHub
Dec 14, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix delete task bug (#1430)
parent
3676d443
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
CatalogueServiceImpl.java
...ain/java/com/dlink/service/impl/CatalogueServiceImpl.java
+4
-4
No files found.
dlink-admin/src/main/java/com/dlink/service/impl/CatalogueServiceImpl.java
View file @
da09d9e4
...
@@ -148,10 +148,10 @@ public class CatalogueServiceImpl extends SuperServiceImpl<CatalogueMapper, Cata
...
@@ -148,10 +148,10 @@ public class CatalogueServiceImpl extends SuperServiceImpl<CatalogueMapper, Cata
Integer
taskId
=
catalogue
.
getTaskId
();
Integer
taskId
=
catalogue
.
getTaskId
();
JobInstance
job
=
jobInstanceService
.
getJobInstanceByTaskId
(
taskId
);
JobInstance
job
=
jobInstanceService
.
getJobInstanceByTaskId
(
taskId
);
if
(
job
==
null
if
(
job
==
null
||
(
JobStatus
.
FINISHED
.
equals
(
job
.
getStatus
())
||
(
JobStatus
.
FINISHED
.
getValue
().
equals
(
job
.
getStatus
())
||
JobStatus
.
FAILED
.
equals
(
job
.
getStatus
())
||
JobStatus
.
FAILED
.
getValue
().
equals
(
job
.
getStatus
())
||
JobStatus
.
CANCELED
.
equals
(
job
.
getStatus
())
||
JobStatus
.
CANCELED
.
getValue
().
equals
(
job
.
getStatus
())
||
JobStatus
.
UNKNOWN
.
equals
(
job
.
getStatus
())))
{
||
JobStatus
.
UNKNOWN
.
getValue
().
equals
(
job
.
getStatus
())))
{
taskService
.
removeById
(
taskId
);
taskService
.
removeById
(
taskId
);
statementService
.
removeById
(
taskId
);
statementService
.
removeById
(
taskId
);
this
.
removeById
(
id
);
this
.
removeById
(
id
);
...
...
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