Skip to content

Commit a6e14be

Browse files
authored
Fixed a bug where the meta information were missing during a reschedule (#199)
1 parent fe1bdc9 commit a6e14be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

workers/agent/agent.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ func (a *Agent) scheduleWork() {
377377
// Setup reschedule of pipeline in case something goes wrong
378378
reschedulePipeline := func() {
379379
pipelineRunPB.Status = string(gaia.RunReschedule)
380-
if _, err := a.client.UpdateWork(context.Background(), pipelineRunPB); err != nil {
380+
if _, err := a.client.UpdateWork(ctx, pipelineRunPB); err != nil {
381381
gaia.Cfg.Logger.Error("failed to reschedule work at primary instance", "error", err)
382382
}
383383
}

0 commit comments

Comments
 (0)