Repository navigation
Align Python Tasks SDK results, validation and poll pacing (0.2.0) - #1
Merged
Merged
Conversation
Match the Node and Go SDKs: `reason` is "timeout" when the server timed the task out and "deadline" when the wait ran out (the task is lost). The default request_timeout is now 15 seconds, as in the guide (M8) and the other SDKs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Success responses with no extracted elements now expose
results: {}. Repeated waits return copies of retained results for up to one hour within the existing buffer cap. README examples use.get()for optional elements. MillisecondreceivedAtvalues (>= 100,000,000,000) raise localInvalidRequestError, matching Node's guard; this restriction requires the 0.2.0 minor bump.The monotonic poll gate rechecks every wake and now measures the gap from request completion so dispatch delays cannot shorten it (3 seconds, or 1 second after a full page). Sent polls still finish independently of departing waiters. New tests confirm existing HTTP error handling preserves normal error types, status and Retry-After for HTML, empty, invalid UTF-8 and non-object JSON bodies, including create retry policy. Main already had the correct Mailman > Settings > Tasks API path; verified the actual arrow-separated path in the built wheel README.
Validation:
python -m mypy mailman_tasks: success, four source files.python -m buildandpython -m twine check dist/mailman_tasks-0.2.0*: wheel and sdist pass.Owner steps after merging:
python -m buildandpython -m twine check dist/mailman_tasks-0.2.0*.python -m twine upload dist/mailman_tasks-0.2.0*, using the owner's PyPI credentials or approved publishing workflow.Nothing has been merged, tagged, released or published.
Need help on this PR? Tag
@codesmith-botwith what you need.