-
Notifications
You must be signed in to change notification settings - Fork 11
Writing status file early in handler execution #99
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
Conversation
|
For later (separate task): [For now, don't write status for non-enable]
|
|
Review improvement based on when this goes in. See if this is sufficient or whether it needs to happen even faster. |
kjohn-msft
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.
Comments inline
src/extension/src/ActionHandler.py
Outdated
| status_json = self.ext_output_status_handler.read_file(seq_no) | ||
| if status_json is 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.
Convert to basic file system exists check
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.
Done
src/extension/src/ActionHandler.py
Outdated
| seq_no = self.ext_config_settings_handler.get_seq_no() | ||
| if seq_no is 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.
Only check env var for lightweight check (as discussed)
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.
Done
| file_path = os.path.join(dir_path, file_name) | ||
| error_message = "" | ||
| self.logger.log("Writing file. [File={0}]".format(file_name)) | ||
| self.logger.log("Writing file. [File={0}] [Content={1}]".format(file_name, str(content))) |
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.
Writing json file
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.
Done
| def mock_get_all_versions_exception(self, extension_pardir): | ||
| raise Exception | ||
|
|
||
| def mock_getenv(self, is_enable_request=False): |
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.
Rename for clarity
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.
Done
kjohn-msft
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.
Comments inline
Q: