With reference to previous #MySfdcTweets on #QueueableInterface - TopicsExpress



          

With reference to previous #MySfdcTweets on #QueueableInterface self-chaining possibility, I encounter this error: System.AsyncException: Maximum callout depth has been reached. Salesforce documents says, Maximum stack depth is two, which means you can add only one job from an executing job, which I think I am abiding by literally. The reason in my case seems to be this: I get this AsyncException because of recursive chaining like Job A --> Job A --> Job A. So now let me put this into a better perspective: ;) Maximum stack depth should mean that there could be maximum two sequential jobs(Job A ---> Job B, not Job A --> Job B --> Job C and so on.) in a Queueable context. I even tried putting some static flag to prevent recursion so as to maintain stack depth to 2. It too didnt work. :P It feels that the static variable somehow getting lost in the asynchronous context. :D However, it should be better to get this understanding verified by SFDC Technical Expert Team. ...To Be Continued (Y) My experience(twist and turns) with Queueable Interface implementation reminds me of this beautiful song. #SalesforceDotCom Listening to and feeling invigorated..
Posted on: Wed, 07 Jan 2015 11:45:13 +0000

Trending Topics



Recently Viewed Topics




© 2015