How can I prove if wp cron is running my task if I have DISABLE_WP_CRON set to true

I always found that logging cron job execution to a file is very helpful. Otherwise you have no idea if it’s working right. Just have your code open a file, write a timestamp, and close.

Something simple like:

 $logfile = $_SERVER['DOCUMENT_ROOT'].'/CRON.txt';
 $handle = fopen($logfile , 'a') or die('Cannot open file:  '.$logfile );
 $data="cron task called at ".date('D, d M Y H:i:s',time())."\n";
 fwrite($handle, $data);
 fclose($handle);

tech