-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
rm sync_compatible
from automations SDK
#16584
Conversation
CodSpeed Performance ReportMerging #16584 will not alter performanceComparing Summary
|
@desertaxle #16583 is merged |
src/prefect/automations.py
Outdated
assert name is not None | ||
automation = await client.read_automations_by_name(name=name) | ||
if len(automation) > 0: | ||
return cls(**automation[0].model_dump()) if automation else None |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like we should be consistent and always raise if the automation is not found. That should help simplify the typing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good call, applied in bf22753
related to #15008