feat: add buscarmisas-network to package.json and scheduler pipeline
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -57,7 +57,11 @@ const PIPELINE_GROUPS: PipelineGroup[] = [
|
||||
{ name: 'kerknet-import', type: 'kerknet-import', config: {} },
|
||||
{ name: 'gottesdienstzeiten-import', type: 'gottesdienstzeiten-import', config: {} },
|
||||
{ name: 'masstimes-api-import', type: 'masstimes-api-import', config: {} },
|
||||
{ name: 'discovermass-import', type: 'discovermass-import', config: {} },
|
||||
{ name: 'buscarmisas-network-BR', type: 'buscarmisas-network-BR', config: {} },
|
||||
{ name: 'buscarmisas-network-MX', type: 'buscarmisas-network-MX', config: {} },
|
||||
{ name: 'buscarmisas-network-AR', type: 'buscarmisas-network-AR', config: {} },
|
||||
{ name: 'buscarmisas-network-CO', type: 'buscarmisas-network-CO', config: {} },
|
||||
{ name: 'buscarmisas-network-CL', type: 'buscarmisas-network-CL', config: {} },
|
||||
],
|
||||
},
|
||||
{
|
||||
@@ -237,8 +241,28 @@ function getJobCommand(type: string, language?: string | null, config?: Record<s
|
||||
if (config?.region) args.splice(2, 1, '--region', String(config.region)); // replace --all with --region
|
||||
return { command: 'npx', args };
|
||||
}
|
||||
case 'discovermass-import': {
|
||||
const args = ['tsx', 'scripts/import-discovermass.ts', '--all'];
|
||||
case 'buscarmisas-network-BR': {
|
||||
const args = ['tsx', 'scripts/import-buscarmisas-network.ts', '--domain', 'horariosmissa.com.br'];
|
||||
if (config?.resumeFrom) args.push('--resume-from', String(config.resumeFrom));
|
||||
return { command: 'npx', args };
|
||||
}
|
||||
case 'buscarmisas-network-MX': {
|
||||
const args = ['tsx', 'scripts/import-buscarmisas-network.ts', '--domain', 'buscarmisas.com.mx'];
|
||||
if (config?.resumeFrom) args.push('--resume-from', String(config.resumeFrom));
|
||||
return { command: 'npx', args };
|
||||
}
|
||||
case 'buscarmisas-network-AR': {
|
||||
const args = ['tsx', 'scripts/import-buscarmisas-network.ts', '--domain', 'horariosmisa.com.ar'];
|
||||
if (config?.resumeFrom) args.push('--resume-from', String(config.resumeFrom));
|
||||
return { command: 'npx', args };
|
||||
}
|
||||
case 'buscarmisas-network-CO': {
|
||||
const args = ['tsx', 'scripts/import-buscarmisas-network.ts', '--domain', 'buscarmisas.co'];
|
||||
if (config?.resumeFrom) args.push('--resume-from', String(config.resumeFrom));
|
||||
return { command: 'npx', args };
|
||||
}
|
||||
case 'buscarmisas-network-CL': {
|
||||
const args = ['tsx', 'scripts/import-buscarmisas-network.ts', '--domain', 'horariomisa.cl'];
|
||||
if (config?.resumeFrom) args.push('--resume-from', String(config.resumeFrom));
|
||||
return { command: 'npx', args };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user