feat: add forward-geocode to scheduler pipeline
- Wire enrich-with-forward-geocode.ts as scheduler job type - Add geocode-enrichment pipeline group (500/cycle, post-imports) - Harden transfer script: skip churches at (0,0) coordinates - Rewrite dedup-mass-schedules.ts with raw SQL to avoid Prisma 7 stack overflow Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -59,6 +59,13 @@ const PIPELINE_GROUPS: PipelineGroup[] = [
|
||||
{ name: 'masstimes-api-import', type: 'masstimes-api-import', config: {} },
|
||||
],
|
||||
},
|
||||
{
|
||||
name: 'geocode-enrichment',
|
||||
mode: 'sequential',
|
||||
phases: [
|
||||
{ name: 'forward-geocode', type: 'forward-geocode-enrichment', config: { limit: 500 } },
|
||||
],
|
||||
},
|
||||
{
|
||||
name: 'scrapers-batch-1',
|
||||
mode: 'parallel',
|
||||
@@ -138,6 +145,12 @@ function getJobCommand(type: string, language?: string | null, config?: Record<s
|
||||
if (config?.country) args.push('--country', String(config.country));
|
||||
return { command: 'npx', args };
|
||||
}
|
||||
case 'forward-geocode-enrichment': {
|
||||
const args = ['tsx', 'scripts/enrich-with-forward-geocode.ts'];
|
||||
if (limit) args.push('--limit', String(limit));
|
||||
if (config?.country) args.push('--country', String(config.country));
|
||||
return { command: 'npx', args };
|
||||
}
|
||||
case 'match-search-results': {
|
||||
const args = ['tsx', 'scripts/match-search-results.ts'];
|
||||
if (limit) args.push('--limit', String(limit));
|
||||
|
||||
Reference in New Issue
Block a user