Skip to content

Commit

Permalink
fix service create container issue
Browse files Browse the repository at this point in the history
  • Loading branch information
chinaboard committed Oct 26, 2023
1 parent 223215d commit 9ca1ce1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions controller/chain.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ func (ch *Chain) chain(c *gin.Context) {
fmt.Sprintf("WHISPER_ENDPOINT=%s", cfg.WhisperEndpoint),
fmt.Sprintf("WHISPER_ENDPOINT_SCHEMA=%s", cfg.WhisperEndpointSchema),
}...)

err := runner(ch.repo, &task)

if err != nil {
Expand Down
1 change: 1 addition & 0 deletions dispatcher/taskdispatcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ func NewTaskDispatcher() (Dispatcher, error) {

func (dd *TaskDispatcher) Add(taskAny any) error {
task := taskAny.(*model.Task)
task.ExitCode = -1
return dd.tc.Add(task)
}

Expand Down

0 comments on commit 9ca1ce1

Please sign in to comment.