fix(snapshot): 暂停前后强制检查共享源全库任务
build / build (push) Successful in 1m12s

This commit is contained in:
姚章浩
2026-10-28 01:05:44 +08:00
parent 55fba5fc0e
commit bf049cee1f
7 changed files with 103 additions and 8 deletions
@@ -80,6 +80,7 @@ type libraryFixtureTx struct {
pgx.Tx
queries []string
committed bool
sourcePending int64
pending, failed, unsettled int64
graph bool
queryError bool
@@ -111,6 +112,10 @@ type libraryFixtureRow struct {
func (r libraryFixtureRow) Scan(dest ...any) error {
switch {
case strings.Contains(r.sql, "library-source-settlement"):
*dest[0].(*int64) = r.d.unsettled
*dest[1].(*int64) = r.d.pending + r.d.sourcePending
*dest[2].(*int64) = r.d.failed
case strings.Contains(r.sql, "schema_migrations"):
*dest[0].(*int) = 74
*dest[1].(*bool) = false