Conversation
Adds a `jobs` namespace to `TinybirdClient` and matching `TinybirdApi` methods wrapping `/v0/jobs`, closing the loop on async jobs the SDK itself triggers (append/replace, connector syncs), matching `tb job ls/details/cancel/retry`. Retry eligibility is left to the API rather than duplicated client-side. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This branch has not been deployed
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
jobsnamespace toTinybirdClient(list/get/cancel/retry) and matchingTinybirdApimethods (list_jobs/get_job/cancel_job/retry_job) wrapping/v0/jobs.append/replace, connector syncs): previously there was no way to check status, cancel, or retry a job the SDK triggered, unliketb job ls/details/cancel/retry.listsupports optionalstatus/kindfilters, matching the/v0/jobsquery params.TinybirdError/TinybirdApiErrorwrapping. This avoids re-implementing server-side business rules in the client that could drift from the API's actual behavior — consistent with how other endpoints in this SDK generally let the API be the source of truth for validity, reserving client-side checks for things the client can know for certain (e.g. mutually exclusive options).Closes https://linear.app/tinybird/issue/PROTM-2264/python-sdk-add-job-management-api-listgetcancelretry
Checklist
lint,typecheck,test)pre-commit run --all-filespasses locally (gitleaks step fails in this sandbox on an unrelated SSL/network error fetching its environment, not a code issue)README.md) with a new "Job Management" sectionCHANGELOG.mdwas updated when user-facing behavior changed