crontab – Request does not match any route, when try save order in cron job


I have a problem when trying to modify an order through a cronjob this code works perfectly, but when executing it inside the cronjob it indicates that error “Request does not match any route”

<?php
namespace VendorModuleCron;
class cronTest
{
    public function __construct(
    ) {
        
    }
    public function execute()
    {
        $objectManager = MagentoFrameworkAppObjectManager::getInstance();
        $orderId = 8;
        $order = $objectManager->get('MagentoSalesModelOrder')->load($orderId);
        $order->save();
    }
}

if I use this same code in an observer for example, it works without any problem