+ Start a Discussion
GunnarGunnar 

Using the AsyncApexJob Object

I can get the number of batches running by running SOQL on the AsyncApexJob table, here.

 

http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_objects_asyncapexjob.htm

 

My question is, how long can my apex program loop around in a DO | WHILE, waiting for an open slot (of the -5- available)????

 

Next question? Any word on when I can have more than -5- jobs in the queue, which is a beyond absurdly small number??