feat(task): allow retry canceled (#7852)

This commit is contained in:
KirCute_ECT
2025-01-27 20:18:10 +08:00
committed by GitHub
parent 23f3178f39
commit d5ec998699
6 changed files with 31 additions and 7 deletions

View File

@ -39,6 +39,7 @@ func (t *CopyTask) GetStatus() string {
}
func (t *CopyTask) Run() error {
t.ReinitCtx()
t.ClearEndTime()
t.SetStartTime(time.Now())
defer func() { t.SetEndTime(time.Now()) }()