This article is regarding the most common issue that we get while invoking Batch Job i.e Exceeded Batch Job execution duration allowed for a day. This failure happens when there is a license shortage for the total execution duration limit for running BatchJobs in the account. By default, 240 minutes is the default timeout set for an account and any BatchJobs that is trying to run beyond this duration it will fail.
PFB below the screenshot of the issue where we can see the maximum timeout for the account is set as 240 minutes still the total run time is 10h 38 min.
So, when initiating a batch job, the system cannot predict its duration in advance. Instead, it evaluates the remaining time available within the account’s allowed timeout.
For instance, if the initial batch job commenced at 1:00 AM and was still running when a second batch job was initiated at 1:10 AM, there would be 230 minutes remaining. As a result, both batch jobs would be able to complete their execution within this timeframe.
