()
| 644 | } |
| 645 | |
| 646 | func (e *forkedMemoryExtractor) extractorTTL() time.Duration { |
| 647 | if e.deadline > 0 { |
| 648 | return e.deadline + memoryExtractorStopTimeout |
| 649 | } |
| 650 | return 2 * time.Minute |
| 651 | } |
| 652 | |
| 653 | func (e *forkedMemoryExtractor) stopChild(parentCtx context.Context, id string) { |
| 654 | stopCtx, cancel := context.WithTimeout(context.WithoutCancel(parentCtx), memoryExtractorStopTimeout) |