Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
power-node
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
Odysseus
power-node
Commits
16cefeb2
Commit
16cefeb2
authored
Apr 07, 2024
by
duanjinfei
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into test
parents
34c881b7
a4788655
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
2 deletions
+4
-2
config.go
conf/config.go
+1
-0
config.json
config.json
+2
-1
task_handler.go
nm/task_handler.go
+1
-1
No files found.
conf/config.go
View file @
16cefeb2
...
...
@@ -29,6 +29,7 @@ type Config struct {
WaitLastTaskExecTime
int64
`json:"wait_last_task_exec_time"`
OpSys
string
`json:"op_sys"`
ReplicateImageNameSuffix
string
`json:"replicate_image_name_suffix"`
IsStopLastContainer
bool
`json:"is_stop_last_container"`
}
var
_cfg
*
Config
=
nil
...
...
config.json
View file @
16cefeb2
...
...
@@ -10,5 +10,6 @@
"oss_url"
:
"https://tmp-file.aigic.ai/api/v1/upload"
,
"wait_last_task_exec_time"
:
60
,
"op_sys"
:
"linux"
,
"replicate_image_name_suffix"
:
"docker.aigic.ai/ai"
"replicate_image_name_suffix"
:
"docker.aigic.ai/ai"
,
"is_stop_last_container"
:
true
}
\ No newline at end of file
nm/task_handler.go
View file @
16cefeb2
...
...
@@ -156,7 +156,7 @@ func (t *TaskWorker) ComputeTaskHandler(taskMsg *nodeManagerV1.PushTaskMessage)
taskOp
.
taskCmd
.
ImageName
=
fmt
.
Sprintf
(
"%s-%s"
,
taskOp
.
taskCmd
.
ImageName
,
conf
.
GetConfig
()
.
OpSys
)
log
.
Info
(
"received task cmd :"
,
taskOp
.
taskCmd
)
log
.
WithField
(
"t.oldTaskImageName"
,
t
.
oldTaskImageName
)
.
WithField
(
"newTaskImageName"
,
taskOp
.
taskCmd
.
ImageName
)
.
Info
(
"task image info"
)
if
taskMsg
.
TaskKind
!=
baseV1
.
TaskKind_StandardTask
{
if
taskMsg
.
TaskKind
!=
baseV1
.
TaskKind_StandardTask
&&
conf
.
GetConfig
()
.
IsStopLastContainer
{
t
.
checkIsStopContainer
(
taskOp
.
taskCmd
)
}
log
.
Info
(
"check is stop container finished"
)
...
...
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