重构数据引擎和报表引擎
This commit is contained in:
@@ -41,3 +41,12 @@ func GetRetryCount(ctx context.Context) int {
|
||||
}
|
||||
return r
|
||||
}
|
||||
|
||||
// GetSyncTimeout 获取单次同步超时时间(分钟,默认120),全量超大表可适当调大
|
||||
func GetSyncTimeout(ctx context.Context) int {
|
||||
t := g.Cfg().MustGet(ctx, "sync.sync_timeout_minutes", 120).Int()
|
||||
if t < 1 {
|
||||
return 120
|
||||
}
|
||||
return t
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user