8000 Fix: Move Non-Retryable to `hatchet_sdk.exceptions` by mrkaye97 · Pull Request #1483 · hatchet-dev/hatchet · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix: Move Non-Retryable to hatchet_sdk.exceptions #1483

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Apr 3, 2025

Conversation

mrkaye97
Copy link
Contributor
@mrkaye97 mrkaye97 commented Apr 3, 2025

Moving the NonRetryableException to hatchet_sdk.exceptions and not having a default ClientConfig at import time to prevent config loading errors

Also removed some deps we're not using

Copy link
vercel bot commented Apr 3, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
hatchet-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 3, 2025 0:38am
hatchet-v0-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 3, 2025 0:38am

@mrkaye97 mrkaye97 requested review from abelanger5 and Copilot April 3, 2025 12:11
Copy link
Contributor
@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR moves the NonRetryableException from hatchet_sdk.runnables.task to hatchet_sdk.exceptions to improve modularity while also delaying the instantiation of ClientConfig to prevent config loading errors.

  • Updated pyproject.toml version to 1.2.2
  • Adjusted imports in runner.py, init.py, and examples to reference hatchet_sdk.exceptions for NonRetryableException
  • Modified Hatchet.init to allow an optional config parameter and instantiate ClientConfig only when needed

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.

Show a summary per file
File Description
sdks/python/pyproject.toml Version bump to reflect change updates
sdks/python/hatchet_sdk/worker/runner/runner.py Updated import for NonRetryableException
sdks/python/hatchet_sdk/runnables/task.py Removed NonRetryableException definition now located in exceptions
sdks/python/hatchet_sdk/hatchet.py Changed default config handling to prevent early config loading errors
sdks/python/hatchet_sdk/exceptions.py Added NonRetryableException definition
sdks/python/hatchet_sdk/init.py Removed export of NonRetryableException from this module
sdks/python/examples/non_retryable/worker.py Updated import to reference hatchet_sdk.exceptions for NonRetryableException

@mrkaye97 mrkaye97 merged commit b3e5630 into main Apr 3, 2025
38 of 39 checks passed
@mrkaye97 mrkaye97 deleted the fix--non-retry-subpackage-and-client-config branch April 3, 2025 13:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0