Your daily research job is about to fetch proposals, and the biggest-looking limit isn't the one that prices project rows.
maxItems caps emitted projects. maxBidsPerProject caps the bids nested inside them, while start-event quantity depends on memory.
That distinction matters before you enable enrichment: a thousand nested bids aren't a thousand separately priced project records.
Example configuration: validate the project ceiling and proposal limit before either reaches the scheduler.
import assert from 'node:assert/strict' ; import { ApifyClient } from 'apify-client' ; import { z } from 'zod' ;
const ResearchInput = z . object ( { mode : z . literal ( 'search' ) , query : z . string ( ) . min ( 1 ) , includeDetails : z . boolean ( ) , includeBids : z . boolean ( ) , maxItems : z . number ( ) . int ( ) . min ( 1 ) . max ( 10000 ) , maxBidsPerProject : z . number ( ) . int ( ) . min ( 1 ) . max ( 1000 ) , } ) . strict ( ) ;
const run_input = ResearchInput .…