@@ -42,9 +42,14 @@ export type RepoUrlBackfillTotals = {
4242 */
4343export async function backfillMavenRepositoryUrls (
4444 qx : QueryExecutor ,
45- options : { batchSize : number ; dryRun : boolean ; isShuttingDown : ( ) => boolean } ,
45+ options : {
46+ batchSize : number
47+ dryRun : boolean
48+ criticalOnly : boolean
49+ isShuttingDown : ( ) => boolean
50+ } ,
4651) : Promise < RepoUrlBackfillTotals > {
47- const { batchSize, dryRun, isShuttingDown } = options
52+ const { batchSize, dryRun, criticalOnly , isShuttingDown } = options
4853 const totals : RepoUrlBackfillTotals = {
4954 scanned : 0 ,
5055 filled : 0 ,
@@ -62,7 +67,11 @@ export async function backfillMavenRepositoryUrls(
6267 break
6368 }
6469
65- const rows = await listMavenPackagesForRepoUrlRecompute ( qx , { afterId, limit : batchSize } )
70+ const rows = await listMavenPackagesForRepoUrlRecompute ( qx , {
71+ afterId,
72+ limit : batchSize ,
73+ criticalOnly,
74+ } )
6675 if ( rows . length === 0 ) break
6776
6877 const updates : { id : number ; repositoryUrl : string | null } [ ] = [ ]
@@ -105,7 +114,10 @@ export async function backfillMavenRepositoryUrls(
105114 }
106115
107116 afterId = rows [ rows . length - 1 ] . id
108- log . info ( { afterId, changes : updates . length , dryRun, ...totals } , 'Backfill progress' )
117+ log . info (
118+ { afterId, changes : updates . length , dryRun, criticalOnly, ...totals } ,
119+ 'Backfill progress' ,
120+ )
109121 }
110122
111123 return totals
0 commit comments