1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
//! `[jobs]` — the durable background-work queue.
use Deserialize;
/// Governs the `jobs` table and the one runner that drains it.
///
/// Process-wide, so deliberately absent from `PROFILE_SECTIONS`: there is one
/// queue, one table and one runner for the process, and a per-endpoint retry
/// budget would mean a job's pacing depended on which profile happened to
/// enqueue it rather than on what the work is. The per-job knobs that genuinely
/// vary — how long one attempt may take, how many times to try, when to give up
/// altogether — are set by the handler and by whoever enqueues, not here.
///
/// There is no `enabled` key. The runner is how the server finishes work it has
/// already promised a client (an order answered `processing` is owed a
/// certificate), so switching it off would not disable a feature, it would strand
/// the orders. What an operator can tune is how hard and how long it tries.
///
/// **Every key here reloads on `SIGHUP`**, six of the seven having been refused
/// by name until the runner stopped snapshotting them at spawn. That mattered
/// more than most: these are the knobs somebody reaches for while an incident is
/// running, and charging a restart for them dropped the very in-flight orders the
/// retuning was meant to save. Each takes effect at a different grain, said on
/// each key below.