Skip to content

Commit

Permalink
Delete expired instances
Browse files Browse the repository at this point in the history
  • Loading branch information
cschleiden committed Nov 4, 2023
1 parent 711622e commit 3fcac68
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions backend/sqlite/sqlite.go
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,10 @@ func (sb *sqliteBackend) RemoveWorkflowInstance(ctx context.Context, instance *c
return err
}

if _, err := tx.ExecContext(ctx, "DELETE FROM `attributes` WHERE instance_id = ? AND execution_id = ?", instanceID, executionID); err != nil {
return err
}

return tx.Commit()
}

Expand Down

0 comments on commit 3fcac68

Please sign in to comment.