airflow.example_dags.plugins.decreasing_priority_weight_strategy
Classes
A priority weight strategy that decreases the priority weight with each attempt of the DAG task. |
|
Class used to define AirflowPlugin. |
Module Contents
- class airflow.example_dags.plugins.decreasing_priority_weight_strategy.DecreasingPriorityStrategy[source]
Bases:
airflow.task.priority_strategy.PriorityWeightStrategyA priority weight strategy that decreases the priority weight with each attempt of the DAG task.
- get_weight(ti)[source]
Get the priority weight of a task.