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
[Feature] Timing Fed Components #530
[Feature] Timing Fed Components #530
Conversation
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.
Consider using functool.wraps
to keep function method names for logging and debugging.
https://stackoverflow.com/questions/308999/what-does-functools-wraps-do
Extended the capability of the
Usage remains the same. Decorate the async methods with |
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 scan this module with flake8, it will highlight a lot of issues.
- Please add unit tests covering different use cases.
|
Looks like our flake8 config is broken. There is no way flake8 would pass with no comment lines |
I see! Also yes, will add comments and docstrings :) |
Looks like by default |
This change can be merged independently. Static timeout values defined in the |
1d61ff5
to
0e0f601
Compare
Signed-off-by: Sunil Acharya (sunil.acharya@intel.com) <sunil.acharya@intel.com>
Signed-off-by: Sunil Acharya (sunil.acharya@intel.com) <sunil.acharya@intel.com>
Signed-off-by: Sunil Acharya (sunil.acharya@intel.com) <sunil.acharya@intel.com>
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.
@acharyasunil the changes look good on my end. Could you also add documentation for how someone would apply this feature to debug infrastructure / performance issues?
Signed-off-by: Sunil Acharya (sunil.acharya@intel.com) <sunil.acharya@intel.com>
From @igor-davidyuk's comment, @acharyasunil It looks like all that is missing at this point are unit tests. After that, this is ready to merge. |
Signed-off-by: Sunil Acharya (sunil.acharya@intel.com) <sunil.acharya@intel.com>
Signed-off-by: Sunil Acharya (sunil.acharya@intel.com) <sunil.acharya@intel.com>
Signed-off-by: Sunil Acharya (sunil.acharya@intel.com) <sunil.acharya@intel.com>
Core timeout functionality is in place.
To apply timeouts to any function/method in openfl codebase, import and decorate the function with
@fedtiming
.Update: 20th Oct
The @fedtiming can now be decorated on normal python functions or async co-routine likewise. Usage remains the same.