- RefreshAllStoresID
- RefreshAllSkusID - use new tasksch when possible(not use run directly).
This commit is contained in:
@@ -36,7 +36,7 @@ type ITask interface {
|
||||
GetStatus() int
|
||||
GetCreatedAt() time.Time
|
||||
|
||||
AddChild(task ITask)
|
||||
AddChild(task ITask) ITask
|
||||
GetChildren() TaskList
|
||||
SetParent(parentTask ITask)
|
||||
|
||||
@@ -182,11 +182,12 @@ func (t *BaseTask) GetStatus() int {
|
||||
return t.Status
|
||||
}
|
||||
|
||||
func (t *BaseTask) AddChild(task ITask) {
|
||||
func (t *BaseTask) AddChild(task ITask) ITask {
|
||||
t.locker.Lock()
|
||||
defer t.locker.Unlock()
|
||||
|
||||
t.Children = append(t.Children, task)
|
||||
return task
|
||||
}
|
||||
|
||||
func (t *BaseTask) GetChildren() (children TaskList) {
|
||||
|
||||
Reference in New Issue
Block a user