Browse Source

Merge pull request '没有实际运行的任务结束时不发送微信通知' (#2716) from fix-2712 into V20220830

Reviewed-on: https://git.openi.org.cn/OpenI/aiforge/pulls/2716
Reviewed-by: lewis <747342561@qq.com>
tags/v1.22.8.2^2
lewis 3 years ago
parent
commit
76a54700bd
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      modules/auth/wechat/cloudbrain.go

+ 4
- 1
modules/auth/wechat/cloudbrain.go View File

@@ -77,7 +77,10 @@ func (CloudbrainStopMsg) ShouldSend(ctx *TemplateContext) bool {
}
for _, v := range setting.CloudbrainStoppedNotifyList {
if v == ctx.Cloudbrain.JobType {
return true
if ctx.Cloudbrain.Duration > 0 && ctx.Cloudbrain.EndTime > 0 {
return true
}
break
}
}
return false


Loading…
Cancel
Save