mirror of
https://github.com/acepanel/panel.git
synced 2026-02-05 10:47:21 +08:00
fix: CLI下不运行队列分发
This commit is contained in:
@@ -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))
|
||||
|
||||
@@ -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)'
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user