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
Jordan VasquezJordan Vasquez 

Future Apex jobs stuck in queue

Hello,

I am attempting to use a Future class to send a Case over to Visual Studio Team Services via REST API. It has been working all this month but for the past few hours none of my requests have made it out of the Queued Apex Job status without a reason why. There have been no significant changes made to the code to prompt this behavior.

Is there some sort of limit that I could be hitting? Is there a way to see this information?

Thanks.
NagendraNagendra (Salesforce Developers) 
Hi Jordan,

Sorry for this issue you are encountering.

May I suggest you please give a try by using the System.abortJob(String job_Id) method from the developer console?

Below is the Link to Documentation: If that won't work, I would suggest contacting SFDC support, as that's most likely an internal issue on their side (our future jobs typically run within seconds of being called, so I can't imagine the circumstances that would cause a job to remain pending after the scheduled time.)

Hope this helps.

Kindly mark this as solved if the information was helpful.

Thanks,
Nagendra