Action to create custom field based on shipping class works when manually triggered, but not on cron schedule

Action to create custom field based on shipping class works when manually triggered, but not on cron schedule

tech