1

Is there a way to check Status of 1st Batch job every 5 mins by using 2nd batch job? Here 1st batch job internally uses 'Import Wizard' to load/Delete records and everything handles in Salesforce Connectors. (So we cannot append our code in 1st Batch job)

4
  • 3
    Do you want to invoke a batch job every 5 minutes or check the result of a bulk data load? Title and question do not seem to match, especially since you say you cannot tapped code to your "batch job" which implies it is from an external system using the bulk api – Eric Sep 6 '16 at 20:59
  • @Eric - I modified the question. Yes the 1st Batch job is invoked by External System (Mule ESB). So I want to write an other Batch Apex which periodically (every 5 or 10min) checks the 1st Batch job Status and if there are any failed batches, want to send an Email. I don't think using Scheduler we can Invoke code more than once in a day right? – Amulya Sep 7 '16 at 13:33
  • 1
    Sure you can...in fact this question may be a duplicate as far as the scheduling aspect. How to run Apex code every 5 minutes in 2016? – Adrian Larson Sep 7 '16 at 13:38
  • Thanks for routing me to right post. You can mark this as Duplicate. – Amulya Sep 7 '16 at 19:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.