How is a «Cron script readiness check» implemented on a Magento 2 installation?

A generic part for an installation and upgrade: How is a «Cron script readiness check» implemented?




https://github.com/magento/magento2/blob/1f7a63dc97/setup/src/Magento/Setup/Model/Cron/ReadinessCheck.php#L21-L24


https://github.com/magento/magento2/blob/1f7a63dc97/setup/src/Magento/Setup/Model/CronScriptReadinessCheck.php#L115-L130


https://github.com/magento/magento2/blob/1f7a63dc97/setup/src/Magento/Setup/Model/Cron/ReadinessCheck.php#L117-L127



https://github.com/magento/magento2/blob/1f7a63dc97/setup/src/Magento/Setup/Console/Command/CronRunCommand.php#L72-L79


https://github.com/magento/magento2/blob/1f7a63dc97/setup/src/Magento/Setup/Console/Command/CronRunCommand.php#L15-L18


https://github.com/magento/magento2/blob/1f7a63dc97/setup/src/Magento/Setup/Console/Command/CronRunCommand.php#L59-L67

See also: