Skip to content

Conversation

@Mantisus
Copy link
Collaborator

Description

  • save context state in result for AdaptivePlaywrightCrawler after isolated processing in SubCrawler

Issues

@Mantisus Mantisus changed the title fixL save context state in result for AdaptivePlaywrightCrawler after isolated processing in SubCrawler fix: save context state in result for AdaptivePlaywrightCrawler after isolated processing in SubCrawler Oct 15, 2025
@Mantisus Mantisus self-assigned this Oct 15, 2025
@Pijukatel
Copy link
Collaborator

Please add the test that will cover the reported issue.

@Mantisus
Copy link
Collaborator Author

Please add the test that will cover the reported issue.

Added

@Mantisus Mantisus requested a review from janbuchar October 23, 2025 00:59
Copy link
Collaborator

@janbuchar janbuchar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

context.log.debug(f'Detected rendering type {detection_result} for {context.request.url}')
self.rendering_type_predictor.store_result(context.request, detection_result)

self._update_context_from_copy(context, pw_run.run_context)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that we should make the changes made to the context part of the RequestHandlerResult data structure at some point. What do you think @Mantisus @Pijukatel?

No need to stall this PR because of that, it can be done later.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Pijukatel Pijukatel merged commit 62b7c70 into apify:master Oct 24, 2025
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Updating request inside "default_handler", "error_handler" and "failed_request_handler"

3 participants