Whole api is working fine and correctly except the cron job