Skip to content

Commit

Permalink
controller/http: update task status
Browse files Browse the repository at this point in the history
this could be used by controllers regardless of how they are deployed
(inband/oob)
  • Loading branch information
joelrebel committed Aug 7, 2024
1 parent ab31971 commit d35dd4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions controller_http.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,9 +204,9 @@ func (n *HTTPController) Run(ctx context.Context, handler TaskHandler) error {
// init publisher
publisher := NewHTTPPublisher(n.serverID, task.ID, n.conditionKind, n.orcQueryor, n.logger)
if task.State == condition.Pending {
task.Status.Append("In process by inband controller: " + n.serverID.String())
task.Status.Append("In process by controller: " + n.serverID.String())
} else {
task.Status.Append("resumed by inband controller: " + n.serverID.String())
task.Status.Append("resumed by controller: " + n.serverID.String())
}

if errPublish := publisher.Publish(ctx, task, false); errPublish != nil {
Expand Down

0 comments on commit d35dd4f

Please sign in to comment.