-
Notifications
You must be signed in to change notification settings - Fork 906
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kedro-telemetry
: Improve performance by switching to after_command_…
…run (#4014) * Tentative fix for the hook issue Signed-off-by: Laura Couto <laurarccouto@gmail.com> * Add variable to track if hook was called already Signed-off-by: Laura Couto <laurarccouto@gmail.com> * Properly set exit code when there is an exception Signed-off-by: Laura Couto <laurarccouto@gmail.com> * Add test coverage for exception on after_command_hook Signed-off-by: Laura Couto <laurarccouto@gmail.com> * Add test for the finally block Signed-off-by: Laura Couto <laurarccouto@gmail.com> * Remove redundant logger configuration on cli.py Signed-off-by: Laura Couto <laurarccouto@gmail.com> * Add minimal required logger config to sned messages to stderr Signed-off-by: Laura Couto <laurarccouto@gmail.com> * Call sys.exit only once Signed-off-by: Laura Couto <laurarccouto@gmail.com> * Lint Signed-off-by: Laura Couto <laurarccouto@gmail.com> * Remove comment Signed-off-by: Laura Couto <laurarccouto@gmail.com> * Move exit into exception block Signed-off-by: Laura Couto <laurarccouto@gmail.com> * Change test Signed-off-by: Laura Couto <laurarccouto@gmail.com> --------- Signed-off-by: Laura Couto <laurarccouto@gmail.com>
- Loading branch information
Showing
2 changed files
with
54 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters