airflow.providers.microsoft.azure.log.wasb_task_handler¶
Module Contents¶
Classes¶
WasbTaskHandler is a python log handler that handles and reads |
- class airflow.providers.microsoft.azure.log.wasb_task_handler.WasbTaskHandler(base_log_folder: str, wasb_log_folder: str, wasb_container: str, filename_template: str, delete_local_copy: str)[source]¶
Bases:
airflow.utils.log.file_task_handler.FileTaskHandler,airflow.utils.log.logging_mixin.LoggingMixinWasbTaskHandler is a python log handler that handles and reads task instance logs. It extends airflow FileTaskHandler and uploads to and reads from Wasb remote storage.
- set_context(self, ti) None[source]¶
Provide task_instance context to airflow task handler.
- Parameters
ti -- task instance object
- wasb_log_exists(self, remote_log_location: str) bool[source]¶
Check if remote_log_location exists in remote storage
- Parameters
remote_log_location -- log's location in remote storage
- Returns
True if location exists else False
- wasb_read(self, remote_log_location: str, return_error: bool = False)[source]¶
Returns the log found at the remote_log_location. Returns '' if no logs are found or there is an error.