← 返回首页
Provide `Request` instance in `on_skipped_request` callback · Issue #2007 · apify/crawlee-python · GitHub
Skip to content

Navigation Menu

Toggle navigation
Sign in
Appearance settings
Search or jump to...

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Resetting focus

Provide Request instance in on_skipped_request callback #2007

New issue
New issue

Description

SkippedRequestCallback receives only the URL string, so handlers can't access request metadata (notably user_data) for skipped requests:

SkippedRequestCallback = Callable[[str, SkippedReason], Awaitable[None]]

#1999 implements passing the Request in a backward-compatible way, but that requires dual-dispatching on the callback's parameter type annotation, which is fragile runtime inspection (see this comment). Since v2 allows breaking changes, do it there with a clean signature instead:

SkippedRequestCallback = Callable[[Request, SkippedReason], Awaitable[None]]

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request.t-toolingIssues with this label are in the ownership of the tooling team.

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    • Open in GitHub Copilot app

    Footer

    © 2026 GitHub, Inc.