- Notifications
You must be signed in to change notification settings - Fork920
Commit0f8251b
authored
feat(coderd/database/dbpurge): retain most recent agent build logs (#14460)
Updates the `DeleteOldWorkspaceAgentLogs` to:- Retain logs for the most recent build regardless of age,- Delete logs for agents that never connected and were created before the cutoff for deleting logs while still retaining the logs most recent build.1 parent10c958b commit0f8251b
File tree
6 files changed
+349
-126
lines changed- coderd/database
- dbmem
- dbpurge
- queries
6 files changed
+349
-126
lines changedLines changed: 81 additions & 10 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1710 | 1710 |
| |
1711 | 1711 |
| |
1712 | 1712 |
| |
1713 |
| - | |
1714 |
| - | |
1715 |
| - | |
1716 |
| - | |
1717 |
| - | |
1718 |
| - | |
1719 |
| - | |
1720 |
| - | |
| 1713 | + | |
| 1714 | + | |
| 1715 | + | |
| 1716 | + | |
| 1717 | + | |
| 1718 | + | |
| 1719 | + | |
| 1720 | + | |
| 1721 | + | |
| 1722 | + | |
| 1723 | + | |
| 1724 | + | |
| 1725 | + | |
| 1726 | + | |
| 1727 | + | |
1721 | 1728 |
| |
| 1729 | + | |
| 1730 | + | |
| 1731 | + | |
1722 | 1732 |
| |
1723 |
| - | |
1724 |
| - | |
| 1733 | + | |
| 1734 | + | |
| 1735 | + | |
| 1736 | + | |
| 1737 | + | |
| 1738 | + | |
| 1739 | + | |
| 1740 | + | |
| 1741 | + | |
| 1742 | + | |
| 1743 | + | |
| 1744 | + | |
| 1745 | + | |
| 1746 | + | |
| 1747 | + | |
| 1748 | + | |
| 1749 | + | |
| 1750 | + | |
| 1751 | + | |
| 1752 | + | |
| 1753 | + | |
| 1754 | + | |
| 1755 | + | |
| 1756 | + | |
| 1757 | + | |
| 1758 | + | |
| 1759 | + | |
| 1760 | + | |
| 1761 | + | |
| 1762 | + | |
| 1763 | + | |
| 1764 | + | |
| 1765 | + | |
| 1766 | + | |
| 1767 | + | |
| 1768 | + | |
| 1769 | + | |
| 1770 | + | |
| 1771 | + | |
| 1772 | + | |
| 1773 | + | |
| 1774 | + | |
| 1775 | + | |
| 1776 | + | |
| 1777 | + | |
| 1778 | + | |
| 1779 | + | |
| 1780 | + | |
| 1781 | + | |
| 1782 | + | |
| 1783 | + | |
| 1784 | + | |
| 1785 | + | |
| 1786 | + | |
| 1787 | + | |
| 1788 | + | |
| 1789 | + | |
| 1790 | + | |
| 1791 | + | |
| 1792 | + | |
| 1793 | + | |
| 1794 | + | |
1725 | 1795 |
| |
| 1796 | + | |
1726 | 1797 |
| |
1727 | 1798 |
| |
1728 | 1799 |
| |
|
Lines changed: 8 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
| 14 | + | |
14 | 15 |
| |
15 | 16 |
| |
16 | 17 |
| |
| |||
30 | 31 |
| |
31 | 32 |
| |
32 | 33 |
| |
33 |
| - | |
| 34 | + | |
| 35 | + | |
34 | 36 |
| |
35 | 37 |
| |
36 | 38 |
| |
| |||
47 | 49 |
| |
48 | 50 |
| |
49 | 51 |
| |
50 |
| - | |
| 52 | + | |
| 53 | + | |
51 | 54 |
| |
52 | 55 |
| |
53 | 56 |
| |
| |||
72 | 75 |
| |
73 | 76 |
| |
74 | 77 |
| |
| 78 | + | |
| 79 | + | |
75 | 80 |
| |
76 | 81 |
| |
77 | 82 |
| |
78 | 83 |
| |
79 | 84 |
| |
80 | 85 |
| |
81 |
| - | |
| 86 | + | |
82 | 87 |
| |
83 | 88 |
| |
84 | 89 |
| |
|
0 commit comments
Comments
(0)