Can We Call Future Method from Queueable Apex?

we cannot call a future from another future or batch apex. The limit on future method for single apex invocation is 50. We can chain the Queueable jobs and the stack depth in developer org is 5 and in enterprise edition you can chain 50 jobs. Queueable supports both primitive and non-primitive data types.

Can we call future method from scheduled apex?

No, We cannot call future methods directly from batch apex but we can call a web service from batch class and that web service can call the @future method. Also, we can call the future method from finish method in the batch class.

Can we call future from batch apex?

Interviewee: No you can't, because Calling a future method is not allowed in the Batch Jobs.

James H. Sterling

James H. Sterling

Environmental Science & Climate Journalist

James Sterling reports on renewable energy developments, climate policy, ecological conservation, and green tech innovations around the globe.