Skip to content

Commit cf520e9

Browse files
jobs: update hot ranges logger details
Two issues with the hot ranges logging job is that it is not marked as internal, and its description is capitalized, which does not follow convention. This PR adds the job to the AutomaticJobTypes which ensures its hidden from the default view, in addition to updating the description to be more focused and appropriate. Fixes: none Epic: none Release note: none
1 parent 5069471 commit cf520e9

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

pkg/jobs/jobspb/wrap.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ var AutomaticJobTypes = [...]Type{
179179
TypeMVCCStatisticsUpdate,
180180
TypeUpdateTableMetadataCache,
181181
TypeSQLActivityFlush,
182+
TypeHotRangesLogger,
182183
}
183184

184185
// DetailsType returns the type for a payload detail.

pkg/upgrade/upgrades/v25_3_add_hot_range_logger_job.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ func createHotRangesLoggerJob(
3333
return d.DB.Txn(ctx, func(ctx context.Context, txn isql.Txn) error {
3434
jr := jobs.Record{
3535
JobID: jobs.HotRangesLoggerJobID,
36-
Description: jobspb.TypeHotRangesLogger.String(),
36+
Description: "the background hot ranges logging job that runs on sql nodes",
3737
Details: jobspb.HotRangesLoggerDetails{},
3838
Progress: jobspb.HotRangesLoggerProgress{},
3939
CreatedBy: &jobs.CreatedByInfo{Name: username.NodeUser, ID: username.NodeUserID},

0 commit comments

Comments
 (0)