-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat: Add support for async invocations #21
Conversation
This pull request has been linked to Shortcut Story #15660: Add async interface for invoke. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #21 +/- ##
=======================================
Coverage 63.55% 63.55%
=======================================
Files 2 2
Lines 107 107
=======================================
Hits 68 68
Misses 39 39 ☔ View full report in Codecov by Sentry. |
src/galileo_protect/invoke.py
Outdated
project_id: Optional[UUID4] = None, | ||
stage_name: Optional[str] = None, | ||
stage_id: Optional[UUID4] = None, | ||
timeout: float = timedelta(seconds=10).total_seconds(), |
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.
we should use const for 10 here, esp since we now use it in 2 places
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 tip, see 9f55115.
Shortcut: https://app.shortcut.com/galileo/story/15660/add-async-interface-for-invoke
As in title.
Tests: