Merge pull request #6811 from rainzm/scheduledtask/fix

Scheduledtask/fix
This commit is contained in:
Zexi Li
2020-06-11 17:51:09 +08:00
committed by GitHub
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -208,7 +208,7 @@ func (st *SScheduledTask) TimerDescription() string {
}
prefix = fmt.Sprintf("每月 【%s】", strings.Join(monthDays, ""))
}
return fmt.Sprintf("%s %2d:%2d触发 有效时间为%s至%s", prefix, timer.Hour, timer.Minute, timer.StartTime.In(zone).Format(format), timer.EndTime.In(zone).Format(format))
return fmt.Sprintf("%s %02d:%02d触发 有效时间为%s至%s", prefix, timer.Hour, timer.Minute, timer.StartTime.In(zone).Format(format), timer.EndTime.In(zone).Format(format))
}
func (st *SScheduledTask) AllowPerformEnable(ctx context.Context, userCred mcclient.TokenCredential,
+1 -1
View File
@@ -45,7 +45,7 @@ type SScheduledTaskLabelManager struct {
type SScheduledTaskLabel struct {
db.SVirtualJointResourceBase
ScheduledTaskId string `width:"36" charset:"ascii" nullable:"false" index:"true"`
Label string `width:"36" charset:"ascii" nullable:"false" index:"true"`
Label string `width:"64" charset:"utf8" nullable:"false" index:"true"`
}
func (slm *SScheduledTaskLabelManager) Attach(ctx context.Context, taskId, label string) error {