Menu

Your bid limit controls payload, not priced project rows
📰

Your bid limit controls payload, not priced project rows

DEV Community: node·Nimbryxo-studio·17 days ago
#w0ArKJWI
#devtonodejs#devto#dev#const#project
Long article (2349 words) — no AI summary yet.
Reading 0:00
15s threshold

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 .…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.