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
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
21 deletions
+30
-21
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
+20
-13
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
flinkClusterCfg
.
getAppConfig
().
setUserJarParas
(
buildParams
(
config
.
getTaskId
()));
flinkClusterCfg
.
getAppConfig
().
setUserJarMainAppClass
(
CommonConstant
.
DINKY_APP_MAIN_CLASS
);
config
.
buildGatewayConfig
(
flinkClusterCfg
);
Optional
.
ofNullable
(
task
.
getJobInstanceId
()).
ifPresent
(
i
->
{
JobInstance
jobInstance
=
jobInstanceService
.
getById
(
i
);
if
(
task
.
getJobInstanceId
()
==
null
)
{
config
.
setClusterId
(
null
);
}
else
{
JobInstance
jobInstance
=
jobInstanceService
.
getById
(
task
.
getJobInstanceId
());
config
.
setClusterId
(
jobInstance
.
getClusterId
());
}
);
}
}
else
{
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;
import
org.dinky.daemon.task.DaemonTask
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
lombok.Data
;
import
lombok.extern.slf4j.Slf4j
;
@Data
@Slf4j
public
class
TaskWorker
implements
Runnable
{
private
static
final
Logger
log
=
LoggerFactory
.
getLogger
(
TaskWorker
.
class
);
private
volatile
boolean
running
=
true
;
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) => {
type
:
jobDetail
.
history
.
type
,
statement
:
jobDetail
.
history
.
statement
,
createTime
:
jobDetail
.
history
.
startTime
,
versionId
:
'
LATEST
'
,
versionId
:
'
Current
'
,
isLatest
:
true
};
...
...
dinky-web/src/pages/DevOps/JobList/components/JobHistoryList.tsx
View file @
b1afda7a
/*
*
*
Licensed to the Apache Software Foundation (ASF) under one or more
*
contributor license agreements. See the NOTICE file distributed with
*
this work for additional information regarding copyright ownership.
*
The ASF licenses this file to You under the Apache License, Version 2.0
*
(the "License"); you may not use this file except in compliance with
*
the License. You may obtain a copy of the License at
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
*
http://www.apache.org/licenses/LICENSE-2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
*
Unless required by applicable law or agreed to in writing, software
*
distributed under the License is distributed on an "AS IS" BASIS,
*
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*
See the License for the specific language governing permissions and
*
limitations under the License.
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
import
StatusTag
from
'@/components/JobTags/StatusTag'
;
import
{
queryList
}
from
'@/services/api'
;
import
{
API_CONSTANTS
}
from
'@/services/endpoints'
;
...
...
@@ -63,7 +64,13 @@ const JobHistoryList = (props: HistoryProps) => {
{
title
:
l
(
'global.table.operate'
),
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