Finished stage label

This commit is contained in:
Ian Gulliver
2026-10-20 22:57:04 -07:00
parent 85138e31bf
commit a8d79b8a33
8 changed files with 199 additions and 189 deletions
+4 -1
View File
@@ -205,7 +205,10 @@ func (s *Store) RunEvents(ctx context.Context, run string) ([]api.Event, error)
func (s *Store) RecordStage(ctx context.Context, taskID, output, commit string) error {
return s.write(ctx, func(tx *sql.Tx, emit emitFunc) error {
_, err := tx.ExecContext(ctx, `UPDATE tasks SET stage_output = ?, stage_commit = ? WHERE id = ?`, output, commit, taskID)
return err
if err != nil {
return err
}
return settleTaskState(ctx, tx, emit, taskID, "byre")
})
}