Thread expire completed task duration up to main

[#79618156]

Signed-off-by: Johannes Petzold <jpetzold@pivotal.io>