Browse Source

提交代码,增加定时器及界面列表显示。

Signed-off-by: zouap <zouap@pcl.ac.cn>
tags/v1.22.10.1^2
zouap 3 years ago
parent
commit
b3642c26b4
2 changed files with 4 additions and 1 deletions
  1. +3
    -0
      modules/timer/timer.go
  2. +1
    -1
      routers/repo/cloudbrain.go

+ 3
- 0
modules/timer/timer.go View File

@@ -18,6 +18,9 @@ func LaunchCronJob() {
specCheckBlockChainUserSuccess := "*/10 * * * *"
c.AddFunc(specCheckBlockChainUserSuccess, repo.HandleBlockChainUnSuccessUsers)

specModelSafetySuccess := "*/10 * * * *"
c.AddFunc(specModelSafetySuccess, repo.TimerHandleModelSafetyTestTask)

specCheckRepoBlockChainSuccess := "*/1 * * * *"
c.AddFunc(specCheckRepoBlockChainSuccess, repo.HandleBlockChainUnSuccessRepos)



+ 1
- 1
routers/repo/cloudbrain.go View File

@@ -2118,7 +2118,7 @@ func CloudBrainBenchmarkIndex(ctx *context.Context) {
}

var jobTypes []string
jobTypes = append(jobTypes, string(models.JobTypeBenchmark), string(models.JobTypeBrainScore), string(models.JobTypeSnn4imagenet))
jobTypes = append(jobTypes, string(models.JobTypeBenchmark), string(models.JobTypeBrainScore), string(models.JobTypeSnn4imagenet), string(models.JobTypeModelSafety))
ciTasks, count, err := models.Cloudbrains(&models.CloudbrainsOptions{
ListOptions: models.ListOptions{
Page: page,


Loading…
Cancel
Save