airflow.operators.empty

Module Contents

Classes

EmptyOperator

Operator that does literally nothing.

class airflow.operators.empty.EmptyOperator(pre_execute=None, post_execute=None, on_execute_callback=None, on_failure_callback=None, on_success_callback=None, on_retry_callback=None, on_skipped_callback=None, **kwargs)[source]

Bases: airflow.models.baseoperator.BaseOperator

Operator that does literally nothing.

It can be used to group tasks in a DAG. The task is evaluated by the scheduler but never processed by the executor.

ui_color = '#e8f7e4'[source]
inherits_from_empty_operator = True[source]
execute(context)[source]

Derive when creating an operator.

Context is the same dictionary used as when rendering jinja templates.

Refer to get_template_context for more context.

Was this entry helpful?