[ Cmii ] [ Octopus ] - add Image Function Scheduler - 1
This commit is contained in:
@@ -61,6 +61,16 @@ func Execute(em *ExecutionMessage) (bool, []string) {
|
||||
// Harbor Execute
|
||||
ok, resultLog = HarborOperatorCache.Exec(em.FuncContent[0], em.FuncContent[1:]...)
|
||||
|
||||
} else if strings.HasPrefix(em.ExecutionType, "IMAGE") {
|
||||
// image function
|
||||
if em.FuncContent == nil || len(em.FuncContent) <= 1 {
|
||||
ok = false
|
||||
resultLog = []string{
|
||||
"[Harbor Execute] - functions args is wrong!",
|
||||
}
|
||||
}
|
||||
// Harbor Execute
|
||||
ok, resultLog = AgentOsOperatorCache.Sync(em.FuncContent[0], em.FuncContent[1:]...)
|
||||
} else {
|
||||
// deprecated
|
||||
// shell command
|
||||
|
||||
Reference in New Issue
Block a user