diff --git a/torch/reactor.go b/torch/reactor.go index 00142d39..9081a2c8 100644 --- a/torch/reactor.go +++ b/torch/reactor.go @@ -121,8 +121,10 @@ func (r *Reactor) Check(ctx context.Context, model coal.Model) error { continue } - // remove tag - model.GetBase().SetTag(operation.TagName, nil, time.Time{}) + // remove tag only if run in transaction + if coal.HasTransaction(ctx) { + model.GetBase().SetTag(operation.TagName, nil, time.Time{}) + } } return nil