feat: update job configuration for infraestructura_site_holder__attach; enhance storage handling and retry logic

This commit is contained in:
2026-04-22 15:23:19 -05:00
parent 0ac5f01b65
commit 6ad25e5889
2 changed files with 18 additions and 7 deletions

View File

@@ -50,16 +50,25 @@ jobs:
post_sql: post_sql:
- "SELECT 1" - "SELECT 1"
- name: red_terminal__attach - name: infraestructura_site_holder__attach
source: source:
schema: Red schema: Infraestructura
table: TERMINAL__ATTACH table: SITE_HOLDER__ATTACH
primary_key: GDB_ARCHIVE_OID primary_key: GDB_ARCHIVE_OID
target: target:
schema: Red schema: Infraestructura
table: TERMINAL__ATTACH table: SITE_HOLDER__ATTACH
to_storage: to_storage:
columns: columns:
- source: DATA - source: DATA
target: FILE_URL target: FILE_URL
mode: REFERENCE_ONLY # REFERENCE_ONLY | DUPLICATE_WITH_REF mode: REFERENCE_ONLY
max_extractors: 8
max_loaders: 4
queue_size: 32
batch_size: 1
retry:
attempts: 5
base_delay_ms: 1000
max_delay_ms: 15000
max_jitter_ms: 500

View File

@@ -119,11 +119,13 @@ func computeStorageTransformationPlan(
schema, table, sourceColName, v) schema, table, sourceColName, v)
return v, nil return v, nil
} }
blobPath := fmt.Sprintf("%s/%s/%s/%s.bin", schema, table, sourceColName, uuid.New().String()) start := time.Now()
blobPath := fmt.Sprintf("%s/%s/%s", schema, table, uuid.New().String())
blobURL, err := azureClient.UploadAndGetURL(ctx, blobPath, b) blobURL, err := azureClient.UploadAndGetURL(ctx, blobPath, b)
if err != nil { if err != nil {
return nil, fmt.Errorf("uploading %s.%s.%s: %w", schema, table, sourceColName, err) return nil, fmt.Errorf("uploading %s.%s.%s: %w", schema, table, sourceColName, err)
} }
log.Debugf(`Succesfully uploaded "%s", (%vms)`, blobURL, time.Since(start).Milliseconds())
return blobURL, nil return blobURL, nil
}, },
}) })