feat: implement Postgres loader and refactor migration job processing

This commit is contained in:
2026-04-10 20:40:01 -05:00
parent 053e6bd673
commit c1bae79f98
5 changed files with 172 additions and 202 deletions

View File

@@ -254,10 +254,13 @@ func (mssqlEx *MssqlExtractor) Exec(
}
}
select {
case <-ctx.Done():
return
case chJobErrorsOut <- custom_errors.JobError{ShouldCancelJob: false, Prev: err}:
var jobError *custom_errors.JobError
if errors.As(err, &jobError) {
select {
case <-ctx.Done():
return
case chJobErrorsOut <- *jobError:
}
}
return