Skip to content

refactor!: make RequestQueueClient.is_finished abstract - #2317

Merged
vdusek merged 2 commits into
v2from
abstract-is-finished
Oct 13, 2026
Merged

vdusek merged 2 commits into
v2from
abstract-is-finished

Conversation

@vdusek

@vdusek vdusek commented Oct 13, 2026

Copy link
Copy Markdown
Collaborator

Makes RequestQueueClient.is_finished abstract. The default fell back to is_empty, which ignores requests still in progress, so a custom client could report its queue as finished too early. All built-in clients and the Apify SDK clients already implement the method. The v2 upgrade guide tells custom client authors to implement it.

Closes: #1985

✍️ Drafted by Claude Code

BREAKING CHANGE: Custom `RequestQueueClient` subclasses must implement `is_finished`; the `is_empty` fallback is removed.
@vdusek vdusek added the t-tooling Issues with this label are in the ownership of the tooling team. label Oct 13, 2026
@vdusek vdusek self-assigned this Oct 13, 2026
@vdusek
vdusek requested a review from apify-factory October 13, 2026 12:03
@vdusek
vdusek marked this pull request as ready for review October 13, 2026 12:03

@apify-factory apify-factory left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Looks good, nothing blocking.

@codecov

codecov Bot commented Oct 13, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (v2@540e0e4). Learn more about missing BASE report.

Additional details and impacted files
@@          Coverage Diff          @@
##             v2    #2317   +/-   ##
=====================================
  Coverage      ?   94.12%           
=====================================
  Files         ?      183           
  Lines         ?    13561           
  Branches      ?        0           
=====================================
  Hits          ?    12764           
  Misses        ?      797           
  Partials      ?        0           
Flag Coverage Δ
unit 94.12% <100.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@vdusek vdusek linked an issue Oct 13, 2026 that may be closed by this pull request
@vdusek
vdusek merged commit 07bb164 into v2 Oct 13, 2026
28 checks passed
@vdusek
vdusek deleted the abstract-is-finished branch October 13, 2026 12:06
vdusek added a commit that referenced this pull request Oct 16, 2026
Makes `RequestQueueClient.is_finished` abstract. The default fell back
to `is_empty`, which ignores requests still in progress, so a custom
client could report its queue as finished too early. All built-in
clients and the Apify SDK clients already implement the method. The v2
upgrade guide tells custom client authors to implement it.

Closes: #1985

*✍️ Drafted by Claude Code*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

t-tooling Issues with this label are in the ownership of the tooling team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make the is_finished method abstract for RequestQueueClient

3 participants