I am chaining my Que-able jobs in an
Enterprise Org but I am getting following exception
System.AsyncException : Maximum stack depth has been reached.
According to documentation :
Because no limit is enforced on the depth of chained jobs, you can
chain one job to another. You can repeat this process with each new
child job to link it to a new child job. For Developer Edition and
Trial organizations, the maximum stack depth for chained jobs is 5,
which means that you can chain jobs four times and the maximum number
of jobs in the chain is 5, including the initial parent queueable job.
my question is
Enterprise Org still enforce this limit of 5 Jobs ? I am bit confused here whether
Enterprise Org that we spin off from
Partner Portal are considered as Trail org or not ?
If you're not paying for an Enterprise Org, it is a trial. This includes orgs created in the Partner Portal, Scratch Orgs, signup pages, Trailhead Orgs, Dreamforce or other event orgs, etc. The exception to this rule are orgs that are given for free for production use, such as the Non-Profit Orgs. If you wanted to confirm this, you can check Setup > Company Information. There's a field that shows if you're active or on a trial.