airflow.providers.amazon.aws.utils.task_log_fetcher

Module Contents

Classes

AwsTaskLogFetcher

Fetches Cloudwatch log events with specific interval as a thread

class airflow.providers.amazon.aws.utils.task_log_fetcher.AwsTaskLogFetcher(*, log_group, log_stream_name, fetch_interval, logger, aws_conn_id='aws_default', region_name=None)[source]

Bases: threading.Thread

Fetches Cloudwatch log events with specific interval as a thread and sends the log events to the info channel of the provided logger.

run()[source]

Method representing the thread’s activity.

You may override this method in a subclass. The standard run() method invokes the callable object passed to the object’s constructor as the target argument, if any, with sequential and keyword arguments taken from the args and kwargs arguments, respectively.

get_last_log_messages(number_messages)[source]
get_last_log_message()[source]
is_stopped()[source]
stop()[source]

Was this entry helpful?