err=fmt.Errorf("PANIC whilst trying to do migrate task: %v",e)
err=fmt.Errorf("PANIC whilst trying to do migrate task: %v",e)
log.Critical("PANIC during runMigrateTask[%d] by DoerID[%d] to RepoID[%d] for OwnerID[%d]: %v\nStacktrace: %v",t.ID,t.DoerID,t.RepoID,t.OwnerID,e,log.Stack(2))
log.Critical("PANIC during runMigrateTask[%d] by DoerID[%d] to RepoID[%d] for OwnerID[%d]: %v\nStacktrace: %v",t.ID,t.DoerID,t.RepoID,t.OwnerID,e,log.Stack(2))
}
}
// fixme: Because ctx is canceled here, so the db.DefaultContext is needed.