2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-05 10:47:21 +08:00

fix: CLI下不运行队列分发

This commit is contained in:
耗子
2024-10-17 12:09:00 +08:00
parent 39a9bad2e1
commit 3b3cb1ff24
2 changed files with 23 additions and 0 deletions

View File

@@ -57,6 +57,11 @@ func (r *taskRepo) Push(task *biz.Task) error {
}
func (r *taskRepo) DispatchWaiting() {
// cli下不处理
if app.IsCli {
return
}
var tasks []biz.Task
if err := app.Orm.Where("status = ?", biz.TaskStatusWaiting).Find(&tasks).Error; err != nil {
app.Logger.Error("获取待处理任务失败", zap.Error(err))

View File

@@ -132,6 +132,15 @@ const chartDisk = computed(() => {
},
markLine: {
data: [{ type: 'average', name: '平均值' }]
},
lineStyle: {
color: 'rgb(247, 184, 81)'
},
itemStyle: {
color: 'rgb(247, 184, 81)'
},
areaStyle: {
color: 'rgb(247, 184, 81)'
}
},
{
@@ -147,6 +156,15 @@ const chartDisk = computed(() => {
},
markLine: {
data: [{ type: 'average', name: '平均值' }]
},
lineStyle: {
color: 'rgb(82, 169, 255)'
},
itemStyle: {
color: 'rgb(82, 169, 255)'
},
areaStyle: {
color: 'rgb(82, 169, 255)'
}
}
]