Skip to content

[pull] master from apify:master#120

Merged
pull[bot] merged 1 commit intocode:masterfrom
apify:master
Jan 14, 2026
Merged

[pull] master from apify:master#120
pull[bot] merged 1 commit intocode:masterfrom
apify:master

Conversation

@pull
Copy link

@pull pull bot commented Jan 14, 2026

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

## Summary
- Refactored enqueueLinks limit logging to distinguish between two
scenarios:
- **`enqueueLinks({ limit: X })`**: Now logs once per request handler
call (not once per run), providing feedback each time the limit is hit
in different handlers
- **`maxCrawlDepth`**: Logs once per crawler run, avoiding spam when
multiple handlers trigger the depth limit
- Replaced multiple boolean flags with a cleaner `Set<string>` pattern
for "log once per run" messages
- Added comprehensive tests for both logging behaviors

## Test plan
- [x] Existing tests pass
- [x] New test: `enqueueLinks limit log message should be logged once
per request handler, not once per run`
- [x] New test: `maxCrawlDepth limit log message should only be logged
once per run`

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Closes #3336

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
@pull pull bot locked and limited conversation to collaborators Jan 14, 2026
@pull pull bot added the ⤵️ pull label Jan 14, 2026
@pull pull bot merged commit 9d01334 into code:master Jan 14, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant