Skip to content

Commit 07a43d7

Browse files
craig[bot]stevendanna
andcommitted
Merge #147688
147688: jobs: fix typo in testing hooks r=jeffswenson a=stevendanna Epic: none Release note: None Co-authored-by: Steven Danna <[email protected]>
2 parents 826ee92 + c7a1d7a commit 07a43d7

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

pkg/jobs/jobs_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1187,7 +1187,7 @@ func TestJobLifecycle(t *testing.T) {
11871187
ctx := context.Background()
11881188

11891189
var params base.TestServerArgs
1190-
params.Knobs.JobsTestingKnobs = &jobs.TestingKnobs{DisableRegistryLifecycleManagent: true}
1190+
params.Knobs.JobsTestingKnobs = &jobs.TestingKnobs{DisableRegistryLifecycleManagement: true}
11911191
srv, sqlDB, _ := serverutils.StartServer(t, params)
11921192
defer srv.Stopper().Stop(ctx)
11931193
s := srv.ApplicationLayer()

pkg/jobs/registry.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -944,7 +944,7 @@ func (r *Registry) withSession(ctx context.Context, f withSessionFunc) {
944944
// jobs if it observes a failure. Otherwise it starts all the main daemons of
945945
// registry that poll the jobs table and start/cancel/gc jobs.
946946
func (r *Registry) Start(ctx context.Context, stopper *stop.Stopper) error {
947-
if r.knobs.DisableRegistryLifecycleManagent {
947+
if r.knobs.DisableRegistryLifecycleManagement {
948948
return nil
949949
}
950950

pkg/jobs/testing_knobs.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,9 @@ type TestingKnobs struct {
7272
// validates that these knobs are used in tandem.
7373
DisableAdoptions bool
7474

75-
// DisableRegistryLifecycleManagement
76-
DisableRegistryLifecycleManagent bool
75+
// DisableRegistryLifecycleManagement disables all periodic job-system
76+
// management tasks such as adoption and cancellation loops.
77+
DisableRegistryLifecycleManagement bool
7778

7879
// BeforeWaitForJobsQuery is called once per invocation of the
7980
// poll-show-jobs query in WaitForJobs.

0 commit comments

Comments
 (0)