From 0384d5423f3ee7073878d5124d19d54ef68836f2 Mon Sep 17 00:00:00 2001 From: Kylesoda <249518290+kylesoda@users.noreply.github.com> Date: Wed, 15 Apr 2026 20:23:21 -0500 Subject: [PATCH] feat: add range configuration to job settings for enhanced data processing control --- config.yaml | 5 +++++ internal/app/config/migration.go | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/config.yaml b/config.yaml index b999242..d3a94c7 100644 --- a/config.yaml +++ b/config.yaml @@ -30,6 +30,11 @@ jobs: table: MANZANA pre_sql: - 'SELECT 1' + range: + min: 1000000 + max: 2000000 + is_min_inclusive: false + is_max_inclusive: true - name: red_puerto enabled: true diff --git a/internal/app/config/migration.go b/internal/app/config/migration.go index f3ceee4..3c1c5ee 100644 --- a/internal/app/config/migration.go +++ b/internal/app/config/migration.go @@ -50,6 +50,12 @@ type Job struct { PreSQL []string `yaml:"pre_sql"` PostSQL []string `yaml:"post_sql"` JobConfig `yaml:",inline"` + Range struct { + Min int64 `yaml:"min"` + Max int64 `yaml:"max"` + IsMinInclusive bool `yaml:"is_min_inclusive"` + IsMaxInclusive bool `yaml:"is_max_inclusive"` + } } type MigrationConfig struct {