(ctx context.Context)
| 525 | } |
| 526 | |
| 527 | func (m *ExtractArchiveTask) Progress(ctx context.Context) queue.Progresses { |
| 528 | m.Lock() |
| 529 | defer m.Unlock() |
| 530 | |
| 531 | if m.state.NodeState.progress != nil { |
| 532 | merged := make(queue.Progresses) |
| 533 | for k, v := range m.progress { |
| 534 | merged[k] = v |
| 535 | } |
| 536 | |
| 537 | for k, v := range m.state.NodeState.progress { |
| 538 | merged[k] = v |
| 539 | } |
| 540 | |
| 541 | return merged |
| 542 | } |
| 543 | return m.progress |
| 544 | } |
| 545 | |
| 546 | func (m *ExtractArchiveTask) Cleanup(ctx context.Context) error { |
| 547 | if m.state.TempPath != "" { |