-
Notifications
You must be signed in to change notification settings - Fork 20
Creation of DTS example and passing of completionToken #40
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
Creation of DTS example and passing of completionToken #40
Conversation
Signed-off-by: Ryan Lettieri <[email protected]>
cgillum
left a comment
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.
The code changes look good, though I have feedback on the sample and README.
Signed-off-by: Ryan Lettieri <[email protected]>
Signed-off-by: Ryan Lettieri <[email protected]>
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.
Please add pip install azure-identity
Signed-off-by: Ryan Lettieri <[email protected]>
Signed-off-by: Ryan Lettieri <[email protected]>
Signed-off-by: Ryan Lettieri <[email protected]>
Signed-off-by: Ryan Lettieri <[email protected]>
05af892 to
6050771
Compare
Signed-off-by: Ryan Lettieri <[email protected]>
Signed-off-by: Ryan Lettieri <[email protected]>
Signed-off-by: Ryan Lettieri <[email protected]>
Signed-off-by: Ryan Lettieri <[email protected]>
Signed-off-by: Ryan Lettieri <[email protected]>
Signed-off-by: Ryan Lettieri <[email protected]>
cgillum
left a comment
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.
Haven't finished reviewing the whole thing yet, but have some fairly significant feedback for what I've reviewed so far.
Signed-off-by: Ryan Lettieri <[email protected]>
Signed-off-by: Ryan Lettieri <[email protected]>
Signed-off-by: Ryan Lettieri <[email protected]>
cgillum
left a comment
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.
The updated design is looking great. A few technical things that we still need to clean up. I haven't reviewed everything quite yet, though.
Signed-off-by: Ryan Lettieri <[email protected]>
Signed-off-by: Ryan Lettieri <[email protected]>
Signed-off-by: Ryan Lettieri <[email protected]>
Signed-off-by: Ryan Lettieri <[email protected]>
Signed-off-by: Ryan Lettieri <[email protected]>
cgillum
left a comment
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.
I think we're super close. A few more things to clean up.
durabletask-azuremanaged/durabletask/azuremanaged/internal/access_token_manager.py
Outdated
Show resolved
Hide resolved
Signed-off-by: Ryan Lettieri <[email protected]>
cgillum
left a comment
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.
Looks like the tests are failing, but just a couple more things in addition to that.
durabletask-azuremanaged/durabletask/azuremanaged/durabletask_grpc_interceptor.py
Outdated
Show resolved
Hide resolved
Signed-off-by: Ryan Lettieri <[email protected]>
Signed-off-by: Ryan Lettieri <[email protected]>
Signed-off-by: Ryan Lettieri <[email protected]>
Signed-off-by: Ryan Lettieri <[email protected]>
cgillum
left a comment
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.
OK, changes look good. I'll sign off after doing some local validation. I may add another commit as well depending on how things go.
torosent
left a comment
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.
LGTM
|
EDIT: Never mind - I see the pyproject is nested. All good there. But it feels weird to have a top level pyproject and then another pyproject somewhere in a nested folder. Maybe we could consider rearranging that structure in the future. |
While this is not strictly necessary - it may be a good idea to use type hints throughout. For example here we have an attribute that has a datetime but also None assigned to it. I ran For now since you don't have any typing at other than the method signature (and neither does |
Signed-off-by: Ryan Lettieri <[email protected]>
Signed-off-by: Ryan Lettieri <[email protected]>
Signed-off-by: Ryan Lettieri <[email protected]>
* Creation of DTS example and passing of completionToken Signed-off-by: Ryan Lettieri <[email protected]> * Adressing review feedback Signed-off-by: Ryan Lettieri <[email protected]> * Reverting dapr readme Signed-off-by: Ryan Lettieri <[email protected]> * Adding accessTokenManager class for refreshing credential token Signed-off-by: Ryan Lettieri <[email protected]> * Adding comments to the example Signed-off-by: Ryan Lettieri <[email protected]> * Adding in requirement for azure-identity Signed-off-by: Ryan Lettieri <[email protected]> * Moving dts logic into its own module Signed-off-by: Ryan Lettieri <[email protected]> * Fixing whitesapce Signed-off-by: Ryan Lettieri <[email protected]> * Updating dts client to refresh token Signed-off-by: Ryan Lettieri <[email protected]> * Cleaning up construction of dts objects and improving examples Signed-off-by: Ryan Lettieri <[email protected]> * Migrating shared access token logic to new grpc class Signed-off-by: Ryan Lettieri <[email protected]> * Adding log statements to access_token_manager Signed-off-by: Ryan Lettieri <[email protected]> * breaking for loop when setting interceptors Signed-off-by: Ryan Lettieri <[email protected]> * Removing changes to client.py and adding additional steps to readme.md Signed-off-by: Ryan Lettieri <[email protected]> * Refactoring client and worker to pass around interceptors Signed-off-by: Ryan Lettieri <[email protected]> * Fixing import for DefaultClientInterceptorImpl Signed-off-by: Ryan Lettieri <[email protected]> * Adressing round 1 of feedback Signed-off-by: Ryan Lettieri <[email protected]> * Fixing interceptor issue Signed-off-by: Ryan Lettieri <[email protected]> * Moving some files around to remove dependencies Signed-off-by: Ryan Lettieri <[email protected]> * Adressing more feedback Signed-off-by: Ryan Lettieri <[email protected]> * More review feedback Signed-off-by: Ryan Lettieri <[email protected]> * Passing token credential as an argument rather than 2 strings Signed-off-by: Ryan Lettieri <[email protected]> * More review feedback for token passing Signed-off-by: Ryan Lettieri <[email protected]> * Addressing None comment and using correct metadata Signed-off-by: Ryan Lettieri <[email protected]> * Updating unit tests Signed-off-by: Ryan Lettieri <[email protected]> * Fixing the type for the unit test Signed-off-by: Ryan Lettieri <[email protected]> * Fixing grpc calls Signed-off-by: Ryan Lettieri <[email protected]> * Fix linter errors and update documentation * Specifying version reqiuirement for pyproject.toml Signed-off-by: Ryan Lettieri <[email protected]> * Updating README Signed-off-by: Ryan Lettieri <[email protected]> * Adding comment for credential type Signed-off-by: Ryan Lettieri <[email protected]> --------- Signed-off-by: Ryan Lettieri <[email protected]> Signed-off-by: Ryan Lettieri <[email protected]> Co-authored-by: Chris Gillum <[email protected]> Signed-off-by: Albert Callarisa <[email protected]>
This PR adds in the completion token to the worker.py class for DTS to understand when a task or work item is complete.
This PR also adds in an example of using the DTS backend and updates the README to reflect the necessary steps