mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-01 15:07:17 +08:00
Merge pull request #6811 from rainzm/scheduledtask/fix
Scheduledtask/fix
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user