RE: Map/Reduce Scripts in Status “Pending” and Scheduled Script in Status “Deferred” for a long time.

Hello all.

Since yesterday, Map / Reduce script executions on my instance are kept in “Pending” status for about 30 minutes and then actually run. The same goes for Scheduled scripts. These are kept in “Deferred” status.
This has happened before in my instance and we usually just wait until it’s ok again.
What can be the cause of this problem? How can I fix it when it happens?

dbarturen Rookie Asked on July 23, 2020 in SuiteScript.
Add Comment
2 Answers

“nothing else is queued” is almost always one of two invisible things: work you can’t see, or fewer processors than you think.

On the first: scheduled scripts and map/reduce scripts share the same SuiteCloud processor pool, but they display on two different status pages (Scheduled Script Status vs Map/Reduce Script Status), and both pages default to filters — date, owner, deployment. A scheduled script from a bundle or another admin can be holding a processor while your filtered view looks empty. Clear every filter on both pages before trusting them, or install Oracle’s free APM SuiteApp — its SuiteCloud Processors Monitor shows actual processor utilization, which ends the guessing.

On the second: the pool is smaller than most people realize. A base account gets 2 processors total for all scheduled + map/reduce work combined. Each SuiteCloud Plus license adds 5. And a single map/reduce script can occupy multiple processors by itself — the Concurrency Limit on its deployment is how many it grabs for the map/reduce stages. So one MR with concurrency 2 on a base account = the entire pool is occupied, and everything else sits in Pending while both status pages look quiet.

“Deferred” specifically is the priority system at work — deployments have a Priority field, and Standard/Low priority submissions get deferred when the pool is contended. And even on a truly idle account there’s normal dispatch latency: the framework picks up queued work on an interval, so 30–60 seconds of Pending means nothing.

So two questions that will probably solve it: how many SuiteCloud Plus licenses does the account have, and what’s the Concurrency Limit on your map/reduce deployments? If the answers are “none” and “2,” there’s your invisible queue — the script is occupying it all by itself.

The broader point is that Pending/Deferred (and MAP_REDUCE_ALREADY_RUNNING when you submit programmatically) describe the state of the processor pool, not a failure of your request — treating them as errors is how people end up resubmitting and duplicating work. I wrote up that pattern here: https://nesystemsgroup.com/tips/map-reduce-already-running-is-a-queue

Rookie Answered on August 19, 2026.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.