perf: matchDelayJob actionThread

This commit is contained in:
lisonge 2024-09-09 23:11:48 +08:00
parent 4597a2002d
commit 51852de92b

View File

@ -170,7 +170,7 @@ class GkdAbService : CompositionAbService({
for (rule in (activityRule.currentRules)) { // 规则数量有可能过多导致耗时过长
val statusCode = rule.status
if (statusCode == RuleStatus.Status3 && rule.matchDelayJob == null) {
rule.matchDelayJob = scope.launch(queryThread) {
rule.matchDelayJob = scope.launch(actionThread) {
delay(rule.matchDelay)
rule.matchDelayJob = null
newQueryTask()