Skip to content
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

Python SDK Rework #73

Merged
merged 60 commits into from
Feb 1, 2025
Merged

Python SDK Rework #73

merged 60 commits into from
Feb 1, 2025

Conversation

tubarao312
Copy link
Collaborator

  • Remove most manager endpoints. There is now just:
    • Task publishing
    • Health checking
    • Worker kind registration
  • Rework broker clients
    • Now all brokers assume they use RabbitMQ (no interfaces)
    • There is now a broker client for the worker and another for the publisher
    • The SDK cannot create queues. It binds to them in passive mode, meaning it can't create queues and assumes they're already created. We can rework this once again in the future, perhaps using a shared Rust library so that different SDKs can share the exact same behaviour.

Doesn't make sense to keep it given that we only support RabbitMQ
…ct to exchanges and queues instead of creating them
Copy link
Collaborator

@Tiburso Tiburso left a comment

Choose a reason for hiding this comment

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

lgtm!

Comment on lines +35 to +42
class SerializableException(BaseModel):
"""A serializable exception."""

type: str
""" The type of the exception. `RuntimeError` evaluates to `"RuntimeError"`."""

message: str
""" The message of the exception. """
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is there a reason why the comments are below the properties here?

@tubarao312 tubarao312 merged commit c54bf3b into pull-rework/main Feb 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants