function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
jojoforcejojoforce 

@future stays in queued

Hi..

I created a simple @Future class in one of our DEV sandboxes, and for some reason it's not executing. It is just staying in queued status.

public with sharing class FutureTesting {

    @future
    public static void calculateInventory() {
   
        System.debug('DO SOMETHING');
    }

}


When I execute this, there is no error message but it just stays in queued status. Anybody have experienced this?
Best Answer chosen by jojoforce
jojoforcejojoforce
It completed executing but it took about 15 minutes from queued to actually get executed for a very light weight @future method.