mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-09-16 18:45:28 +00:00
Fix procs.proc_started value if not set
This commit is contained in:
@@ -184,6 +184,10 @@ func (s *RPC) Update(c context.Context, id string, state rpc.State) error {
|
||||
proc.State = model.StatusRunning
|
||||
}
|
||||
|
||||
if proc.Started == 0 && proc.Stopped != 0 {
|
||||
proc.Started = build.Started
|
||||
}
|
||||
|
||||
if err := s.store.ProcUpdate(proc); err != nil {
|
||||
log.Printf("error: rpc.update: cannot update proc: %s", err)
|
||||
}
|
||||
|
Reference in New Issue
Block a user