Repository navigation
feat: sync Go client with Apify OpenAPI spec v2-2026-10-08T073338Z - #28
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Syncs the Go client from OpenAPI spec
v2-2026-10-01T153946Ztov2-2026-10-08T073338Z(apify/apify-docs#3043, #3044, #3042) and ports the Go-relevant changes from the referenceapify-client-jsbatch (apify/apify-client-js#1091, #1125, #1122, #1121, #1123, #1124, #1107, #1137, #1105).ActorStartOptions.WaitForResources/TaskStartOptions.WaitForResources: retryStart/StartRaw/Call/CallRawevery 10s while the API rejects the start withactor-memory-limit-exceeded/concurrent-runs-limit-exceeded;WaitForResourcesIndefinitelyretries with no time bound (apify-client-js#1091).Iterate(incl.IterateItems) to keep paging until a page scans no rows or the caller'sLimitis reached, instead of stopping at the first page'sTotal, so rows added to a growing collection mid-iteration are no longer skipped (apify-client-js#1125).ActorVersionCollectionClient.Iteratenow fetches once, since that endpoint ignoresoffset/limit.WaitForFinish(and theCallhelpers 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.readmefield is reachable viaUser.Extra), #3042 (theuseCachedefault 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,StreamedLoginternals, docs).CHANGELOG.md,README.md,docs/actors.mdupdated;ClientVersionbumped0.10.0→0.11.0andAPISpecVersionto the new spec.