Allow max queue size setting for state runs to prevent performance problems from queue growth