Cron task firing but function not working

Figured it out…

I needed to use $post->ID instead of get_the_ID().