add a lag config and a sleep if next extraction is in the future or within the lag period.