For correct URLs generated during cron runs please make sure that Web > Secure and Unsecure Base URLs are explicitly set. All the times are in minutes. Magento\Config\Model\Config\Source\Yesno