While working with custom workflows in SharePoint 2010, I got
error in workflow as “Due to heavy load, the latest workflow operation has been
queued”. After refreshing the page, most of the times error may fixed and
workflow completed as usual. Sometimes I used to stuck on the workflow and I can
see only the non-reactive screen with the error. I didn’t event fix the error
after resetting the workflow and IIS Manager. After digging for the solution
finally I got a fix for the error by updating the Workflow Postpone threshold
in farm config manager by using following PowerShell commands,
Set-SpFarmConfig -WorkflowPostponeThreshold 30
By running the command, workflow threshold will be increased
from 15 to 30
get-sptimerjob | ?{$_.name -like "job-workflow"} |
set-sptimerjob -schedule "every 1 minutes between 0 and 59"
By running this command frequency of execution for SP timer
job, job-workflow will be increased to every minute. After running the commands,
if workflow don’t have any issues will be completed as expected.