Skip to content

feat: sync Go client with Apify OpenAPI spec v2-2026-10-08T073338Z - #28

Merged
Pijukatel merged 2 commits into
masterfrom
claude/vigilant-sagan-gg8tp4
Oct 12, 2026
Merged

Pijukatel merged 2 commits into
masterfrom
claude/vigilant-sagan-gg8tp4

Conversation

@Pijukatel

@Pijukatel Pijukatel commented Oct 12, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Syncs the Go client from OpenAPI spec v2-2026-10-01T153946Z to v2-2026-10-08T073338Z (apify/apify-docs#3043, #3044, #3042) and ports the Go-relevant changes from the reference apify-client-js batch (apify/apify-client-js#1091, #1125, #1122, #1121, #1123, #1124, #1107, #1137, #1105).

  • ActorStartOptions.WaitForResources / TaskStartOptions.WaitForResources: retry Start/StartRaw/Call/CallRaw every 10s while the API rejects the start with actor-memory-limit-exceeded/concurrent-runs-limit-exceeded; WaitForResourcesIndefinitely retries with no time bound (apify-client-js#1091).
  • Fixed every offset-paginated Iterate (incl. IterateItems) to keep paging until a page scans no rows or the caller's Limit is reached, instead of stopping at the first page's Total, so rows added to a growing collection mid-iteration are no longer skipped (apify-client-js#1125). ActorVersionCollectionClient.Iterate now fetches once, since that endpoint ignores offset/limit.
  • Fixed WaitForFinish (and the Call helpers that poll through it) to give up with the API's 404 error once a run/build has answered 404 for 3s (reset by any successful poll), instead of polling for the full wait budget (apify-client-js#1124).

No code change needed for apify-docs#3043 (the new Profile.readme field is reachable via User.Extra), #3042 (the useCache default was already documented correctly), #3044 (schema renames don't affect Go's own type names), or apify-client-js#1121/#1122 (already compliant). #1107, #1123, #1105 and #1137 are JS-internal (generated model names, StreamedLog internals, docs).

CHANGELOG.md, README.md, docs/actors.md updated; ClientVersion bumped 0.10.0 → 0.11.0 and APISpecVersion to the new spec.

Adds ActorStartOptions/TaskStartOptions.WaitForResources (retry a resource-limited
start, matching apify-client-js#1091). Fixes ListIterator to stop paging on an
empty page / the caller's Limit instead of the first page's Total, so a growing
collection is no longer cut short (apify-client-js#1125), and special-cases the
unpaginated Actor version collection accordingly. Fixes WaitForFinish to give up
with a 404 error after 3s of a run/build answering 404 instead of polling for the
full wait budget (apify-client-js#1124).
Removes the dead ListIterator.startOffset field (its only reader was the
removed Total-based cap). Resets waitForFinish's "present" state on every
404, not just the first, so a run/build that was seen once and then answers
404 until a sub-3s wait budget elapses reports not-found instead of a stale
last-known state, matching the reference client's job-reset-per-404 behavior.
@Pijukatel Pijukatel added adhoc Ad-hoc unplanned task added during the sprint. tested Temporary label used only programatically for some analytics. t-tooling Issues with this label are in the ownership of the tooling team. labels Oct 12, 2026 — with Claude
@Pijukatel
Pijukatel merged commit e39f609 into master Oct 12, 2026
4 of 8 checks passed
@Pijukatel
Pijukatel deleted the claude/vigilant-sagan-gg8tp4 branch October 12, 2026 13:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

adhoc Ad-hoc unplanned task added during the sprint. t-tooling Issues with this label are in the ownership of the tooling team. tested Temporary label used only programatically for some analytics.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants