Activity › Forums › Salesforce® Discussions › Run Batch Apex class without stopping in Salesforce? Tagged: Salesforce APIs, Salesforce Batch Apex, Salesforce Customization, Salesforce Development, Salesforce Integration Salesforce® Discussions Run Batch Apex class without stopping in Salesforce? Posted by HARSHITA on June 6, 2017 at 3:11 PM We have to run batch class continuously without stopping. How to do this? Shaik replied 8 years, 11 months ago 3 Members · 4 Replies Salesforce APIsSalesforce Batch ApexSalesforce CustomizationSalesforce DevelopmentSalesforce Integration 4 Replies Amarkant Member June 7, 2017 at 3:02 AM What is you exact scenario ? One thing you can do to achieve this, start the next batch in finish method of first batch. [adinserter block='9'] HARSHITA Member June 7, 2017 at 5:52 AM Hi Amar, I was asked this question in an interview and i answered the same.No scenario was provided. Amarkant Member June 7, 2017 at 6:46 AM We can have Integer Iterator to achieve this instead of Query Locator in Batch Apex. Shaik Member June 9, 2017 at 6:39 PM invoke the same batch in Finish method. global void finish(Database.BatchableContext BC){ Database.executeBatch(new sampleBatch,1000); } Log In to reply. Public All Members My Connections Only Me PublicAll MembersMy ConnectionsOnly Me Public All Members My Connections Only Me