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
b1afda7a
Unverified
Commit
b1afda7a
authored
Nov 15, 2023
by
gaoyan
Committed by
GitHub
Nov 15, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix some bug (#2529)
* Optimize the process * fix some bug
parent
873ffedf
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
9 deletions
+18
-9
TaskServiceImpl.java
...src/main/java/org/dinky/service/impl/TaskServiceImpl.java
+5
-3
TaskWorker.java
...mon/src/main/java/org/dinky/daemon/entity/TaskWorker.java
+4
-4
JobVersionTab.tsx
...b/src/pages/DevOps/JobDetail/JobVersion/JobVersionTab.tsx
+1
-1
JobHistoryList.tsx
...eb/src/pages/DevOps/JobList/components/JobHistoryList.tsx
+8
-1
No files found.
dinky-admin/src/main/java/org/dinky/service/impl/TaskServiceImpl.java
View file @
b1afda7a
...
@@ -206,10 +206,12 @@ public class TaskServiceImpl extends SuperServiceImpl<TaskMapper, Task> implemen
...
@@ -206,10 +206,12 @@ public class TaskServiceImpl extends SuperServiceImpl<TaskMapper, Task> implemen
flinkClusterCfg
.
getAppConfig
().
setUserJarParas
(
buildParams
(
config
.
getTaskId
()));
flinkClusterCfg
.
getAppConfig
().
setUserJarParas
(
buildParams
(
config
.
getTaskId
()));
flinkClusterCfg
.
getAppConfig
().
setUserJarMainAppClass
(
CommonConstant
.
DINKY_APP_MAIN_CLASS
);
flinkClusterCfg
.
getAppConfig
().
setUserJarMainAppClass
(
CommonConstant
.
DINKY_APP_MAIN_CLASS
);
config
.
buildGatewayConfig
(
flinkClusterCfg
);
config
.
buildGatewayConfig
(
flinkClusterCfg
);
Optional
.
ofNullable
(
task
.
getJobInstanceId
()).
ifPresent
(
i
->
{
if
(
task
.
getJobInstanceId
()
==
null
)
{
JobInstance
jobInstance
=
jobInstanceService
.
getById
(
i
);
config
.
setClusterId
(
null
);
}
else
{
JobInstance
jobInstance
=
jobInstanceService
.
getById
(
task
.
getJobInstanceId
());
config
.
setClusterId
(
jobInstance
.
getClusterId
());
config
.
setClusterId
(
jobInstance
.
getClusterId
());
}
);
}
}
else
{
}
else
{
Optional
.
ofNullable
(
task
.
getClusterId
()).
ifPresent
(
config:
:
setClusterId
);
Optional
.
ofNullable
(
task
.
getClusterId
()).
ifPresent
(
config:
:
setClusterId
);
}
}
...
...
dinky-daemon/src/main/java/org/dinky/daemon/entity/TaskWorker.java
View file @
b1afda7a
...
@@ -21,13 +21,13 @@ package org.dinky.daemon.entity;
...
@@ -21,13 +21,13 @@ package org.dinky.daemon.entity;
import
org.dinky.daemon.task.DaemonTask
;
import
org.dinky.daemon.task.DaemonTask
;
import
org.slf4j.Logger
;
import
lombok.Data
;
import
org.slf4j.LoggerFactory
;
import
lombok.extern.slf4j.Slf4j
;
@Data
@Slf4j
public
class
TaskWorker
implements
Runnable
{
public
class
TaskWorker
implements
Runnable
{
private
static
final
Logger
log
=
LoggerFactory
.
getLogger
(
TaskWorker
.
class
);
private
volatile
boolean
running
=
true
;
private
volatile
boolean
running
=
true
;
private
final
TaskQueue
<
DaemonTask
>
queue
;
private
final
TaskQueue
<
DaemonTask
>
queue
;
...
...
dinky-web/src/pages/DevOps/JobDetail/JobVersion/JobVersionTab.tsx
View file @
b1afda7a
...
@@ -35,7 +35,7 @@ const JobVersionTab = (props: JobProps) => {
...
@@ -35,7 +35,7 @@ const JobVersionTab = (props: JobProps) => {
type
:
jobDetail
.
history
.
type
,
type
:
jobDetail
.
history
.
type
,
statement
:
jobDetail
.
history
.
statement
,
statement
:
jobDetail
.
history
.
statement
,
createTime
:
jobDetail
.
history
.
startTime
,
createTime
:
jobDetail
.
history
.
startTime
,
versionId
:
'
LATEST
'
,
versionId
:
'
Current
'
,
isLatest
:
true
isLatest
:
true
};
};
...
...
dinky-web/src/pages/DevOps/JobList/components/JobHistoryList.tsx
View file @
b1afda7a
...
@@ -16,6 +16,7 @@
...
@@ -16,6 +16,7 @@
* limitations under the License.
* limitations under the License.
*
*
*/
*/
import
StatusTag
from
'@/components/JobTags/StatusTag'
;
import
StatusTag
from
'@/components/JobTags/StatusTag'
;
import
{
queryList
}
from
'@/services/api'
;
import
{
queryList
}
from
'@/services/api'
;
import
{
API_CONSTANTS
}
from
'@/services/endpoints'
;
import
{
API_CONSTANTS
}
from
'@/services/endpoints'
;
...
@@ -63,7 +64,13 @@ const JobHistoryList = (props: HistoryProps) => {
...
@@ -63,7 +64,13 @@ const JobHistoryList = (props: HistoryProps) => {
{
{
title
:
l
(
'global.table.operate'
),
title
:
l
(
'global.table.operate'
),
valueType
:
'option'
,
valueType
:
'option'
,
render
:
()
=>
[<
a
key=
{
'history-detail'
}
>
{
l
(
'devops.joblist.detail'
)
}
</
a
>]
render
:
(
text
:
any
,
record
:
Jobs
.
JobInstance
)
=>
[
<
a
key=
{
'history-detail'
}
onClick=
{
()
=>
history
.
push
(
`/devops/job-detail?id=${record.id}`
)
}
>
{
l
(
'devops.joblist.detail'
)
}
</
a
>
]
}
}
];
];
...
...
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