function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Batch jobs: queue duration and troubleshooting

I have submitted a batch job in a sandbox that has been queued for 16 hours now with no activity.  I have a second batch job that is similar to the first and when I submit the second one, it completes within a minute.


What's the expected average time that a job will remain in queue?  Is there anyway to troubleshoot why a batch job will not run?   Both batch jobs passed unit testing.






I am trying to run a batch process, its queued up successfully but its in the queue for infinite time. Any pointers?

running into similar in sandbox.  troubleshooting info would be great.  it'd also be great if we could get an "expected start time" for queued jobs.


i found the queued time to be somewhat relative to batch (query) size.  if you are iterating over a huge data set, it'll take a while before it goes into processing.