- Notifications
You must be signed in to change notification settings - Fork1k
Commita74273f
authored
chore(coderd/database/dbpurge): replace usage of time.* with quartz (#14480)
Related to#10576This PR introduces quartz to coderd/database/dbpurge and updates the following unit tests to make use of Quartz's functionality:- TestPurge- TestDeleteOldWorkspaceAgentLogsAdditionally, updates DeleteOldWorkspaceAgentLogs to replace the hard-coded interval with a parameter passed into the query. This aids in testing and brings us a step towards allowing operators to configure the cutoff interval for workspace agent logs.1 parentc90be9b commita74273f
File tree
11 files changed
+120
-86
lines changed- cli
- coderd/database
- dbauthz
- dbmem
- dbmetrics
- dbmock
- dbpurge
- queries
11 files changed
+120
-86
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
985 | 985 |
| |
986 | 986 |
| |
987 | 987 |
| |
988 |
| - | |
| 988 | + | |
989 | 989 |
| |
990 | 990 |
| |
991 | 991 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1144 | 1144 |
| |
1145 | 1145 |
| |
1146 | 1146 |
| |
1147 |
| - | |
| 1147 | + | |
1148 | 1148 |
| |
1149 | 1149 |
| |
1150 | 1150 |
| |
1151 |
| - | |
| 1151 | + | |
1152 | 1152 |
| |
1153 | 1153 |
| |
1154 | 1154 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2517 | 2517 |
| |
2518 | 2518 |
| |
2519 | 2519 |
| |
2520 |
| - | |
| 2520 | + | |
2521 | 2521 |
| |
2522 | 2522 |
| |
2523 | 2523 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1706 | 1706 |
| |
1707 | 1707 |
| |
1708 | 1708 |
| |
1709 |
| - | |
| 1709 | + | |
1710 | 1710 |
| |
1711 | 1711 |
| |
1712 | 1712 |
| |
1713 |
| - | |
1714 |
| - | |
1715 |
| - | |
1716 |
| - | |
1717 | 1713 |
| |
1718 | 1714 |
| |
1719 | 1715 |
| |
1720 | 1716 |
| |
1721 |
| - | |
| 1717 | + | |
1722 | 1718 |
| |
1723 | 1719 |
| |
1724 | 1720 |
| |
|
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
| 14 | + | |
14 | 15 |
| |
15 | 16 |
| |
16 | 17 |
| |
17 |
| - | |
| 18 | + | |
| 19 | + | |
18 | 20 |
| |
19 | 21 |
| |
20 | 22 |
| |
21 | 23 |
| |
22 | 24 |
| |
23 | 25 |
| |
24 |
| - | |
| 26 | + | |
25 | 27 |
| |
26 | 28 |
| |
27 | 29 |
| |
28 | 30 |
| |
29 | 31 |
| |
30 | 32 |
| |
31 |
| - | |
32 |
| - | |
33 |
| - | |
34 |
| - | |
| 33 | + | |
| 34 | + | |
35 | 35 |
| |
36 |
| - | |
37 |
| - | |
38 | 36 |
| |
39 | 37 |
| |
40 | 38 |
| |
| |||
49 | 47 |
| |
50 | 48 |
| |
51 | 49 |
| |
52 |
| - | |
| 50 | + | |
53 | 51 |
| |
54 | 52 |
| |
55 | 53 |
| |
| |||
62 | 60 |
| |
63 | 61 |
| |
64 | 62 |
| |
65 |
| - | |
| 63 | + | |
66 | 64 |
| |
67 | 65 |
| |
68 | 66 |
| |
| |||
78 | 76 |
| |
79 | 77 |
| |
80 | 78 |
| |
81 |
| - | |
| 79 | + | |
82 | 80 |
| |
83 |
| - | |
| 81 | + | |
84 | 82 |
| |
85 | 83 |
| |
86 | 84 |
| |
|
0 commit comments
Comments
(0)