airflow.exceptions
Exceptions used by Airflow.
Exceptions
Base exception for Airflow errors. |
|
Raise when the application or server cannot handle the request. |
|
Raise when name of the stats is invalid. |
|
Raise by providers when imports are missing for optional provider features. |
|
Raise when a DAG's ID is already used by another DAG. |
|
Raise when there is a violation of a Cluster Policy in DAG definition. |
|
Raise when skipping dag is needed in Cluster Policy. |
|
Raise for a Cluster Policy other than AirflowClusterPolicyViolation or AirflowClusterPolicySkipDag. |
|
Raise when a DAG is not available in the system. |
|
Raise when a DAG code is not available in the system. |
|
Raise when a DAG Run is not available in the system. |
|
Raise when creating a DAG run for DAG which already has DAG run entry. |
|
A problem occurred when trying to serialize something. |
|
Raise when a task instance is not available in the system. |
|
Raise if a task is neither mapped nor has any parent mapped groups. |
|
Raise when a Pool is not available in the system. |
|
Raises when connection or variable file can not be parsed. |
|
Raise when a file type is not supported. |
|
Raise when multiple values are found for the same connection ID. |
|
Raise when multiple values are found for the same variable name. |
|
Raised when exception happens during Pod Mutation Hook execution. |
|
Raised when an error is encountered while trying to merge pod configs. |
|
Issued for usage of deprecated features that will be removed in Airflow4. |
|
Issued for usage of deprecated features of Airflow provider. |
|
Raised when an error is encountered while a pickling library deserializes a pickle file. |
|
Raised when an attempt is made to load an executor which is not configured. |
|
Raised when a Dag cannot be deserialized. |
|
Raise when the user attempts to clear currently running tasks. |
Classes
Information about a single error in a file. |
Functions
|
Provide backward compatibility for moved exceptions. |
Module Contents
- exception airflow.exceptions.AirflowException[source]
Bases:
ExceptionBase exception for Airflow errors.
- exception airflow.exceptions.AirflowBadRequest[source]
Bases:
airflow.sdk.exceptions.AirflowExceptionRaise when the application or server cannot handle the request.
- status_code[source]
- exception airflow.exceptions.InvalidStatsNameException[source]
Bases:
airflow.sdk.exceptions.AirflowExceptionRaise when name of the stats is invalid.
- exception airflow.exceptions.AirflowOptionalProviderFeatureException[source]
Bases:
airflow.sdk.exceptions.AirflowExceptionRaise by providers when imports are missing for optional provider features.
- exception airflow.exceptions.AirflowDagDuplicatedIdException(dag_id, incoming, existing)[source]
Bases:
airflow.sdk.exceptions.AirflowExceptionRaise when a DAG’s ID is already used by another DAG.
- dag_id[source]
- incoming[source]
- existing[source]
- __str__()[source]
Return str(self).
- exception airflow.exceptions.AirflowClusterPolicyViolation[source]
Bases:
airflow.sdk.exceptions.AirflowExceptionRaise when there is a violation of a Cluster Policy in DAG definition.
- exception airflow.exceptions.AirflowClusterPolicySkipDag[source]
Bases:
airflow.sdk.exceptions.AirflowExceptionRaise when skipping dag is needed in Cluster Policy.
- exception airflow.exceptions.AirflowClusterPolicyError[source]
Bases:
airflow.sdk.exceptions.AirflowExceptionRaise for a Cluster Policy other than AirflowClusterPolicyViolation or AirflowClusterPolicySkipDag.
- exception airflow.exceptions.DagNotFound[source]
Bases:
airflow.sdk.exceptions.AirflowNotFoundExceptionRaise when a DAG is not available in the system.
- exception airflow.exceptions.DagCodeNotFound[source]
Bases:
airflow.sdk.exceptions.AirflowNotFoundExceptionRaise when a DAG code is not available in the system.
- exception airflow.exceptions.DagRunNotFound[source]
Bases:
airflow.sdk.exceptions.AirflowNotFoundExceptionRaise when a DAG Run is not available in the system.
- exception airflow.exceptions.DagRunAlreadyExists(dag_run)[source]
Bases:
AirflowBadRequestRaise when creating a DAG run for DAG which already has DAG run entry.
- dag_run[source]
- serialize()[source]
- exception airflow.exceptions.SerializationError[source]
Bases:
airflow.sdk.exceptions.AirflowExceptionA problem occurred when trying to serialize something.
- exception airflow.exceptions.TaskInstanceNotFound[source]
Bases:
airflow.sdk.exceptions.AirflowNotFoundExceptionRaise when a task instance is not available in the system.
- exception airflow.exceptions.NotMapped[source]
Bases:
ExceptionRaise if a task is neither mapped nor has any parent mapped groups.
- exception airflow.exceptions.PoolNotFound[source]
Bases:
airflow.sdk.exceptions.AirflowNotFoundExceptionRaise when a Pool is not available in the system.
- class airflow.exceptions.FileSyntaxError[source]
Bases:
NamedTupleInformation about a single error in a file.
- __str__()[source]
- exception airflow.exceptions.AirflowFileParseException(msg, file_path, parse_errors)[source]
Bases:
airflow.sdk.exceptions.AirflowExceptionRaises when connection or variable file can not be parsed.
- Parameters:
msg (str) – The human-readable description of the exception
file_path (str) – A processed file that contains errors
parse_errors (list[FileSyntaxError]) – File syntax errors
- msg[source]
- file_path[source]
- parse_errors[source]
- __str__()[source]
Return str(self).
- exception airflow.exceptions.AirflowUnsupportedFileTypeException[source]
Bases:
airflow.sdk.exceptions.AirflowExceptionRaise when a file type is not supported.
- exception airflow.exceptions.ConnectionNotUnique[source]
Bases:
airflow.sdk.exceptions.AirflowExceptionRaise when multiple values are found for the same connection ID.
- exception airflow.exceptions.VariableNotUnique[source]
Bases:
airflow.sdk.exceptions.AirflowExceptionRaise when multiple values are found for the same variable name.
- exception airflow.exceptions.PodMutationHookException[source]
Bases:
airflow.sdk.exceptions.AirflowExceptionRaised when exception happens during Pod Mutation Hook execution.
- exception airflow.exceptions.PodReconciliationError[source]
Bases:
airflow.sdk.exceptions.AirflowExceptionRaised when an error is encountered while trying to merge pod configs.
- exception airflow.exceptions.RemovedInAirflow4Warning[source]
Bases:
DeprecationWarningIssued for usage of deprecated features that will be removed in Airflow4.
- exception airflow.exceptions.AirflowProviderDeprecationWarning[source]
Bases:
DeprecationWarningIssued for usage of deprecated features of Airflow provider.
- exception airflow.exceptions.DeserializingResultError[source]
Bases:
ValueErrorRaised when an error is encountered while a pickling library deserializes a pickle file.
- __str__()[source]
Return str(self).
- exception airflow.exceptions.UnknownExecutorException[source]
Bases:
ValueErrorRaised when an attempt is made to load an executor which is not configured.
- exception airflow.exceptions.DeserializationError(dag_id=None, message=None)[source]
Bases:
ExceptionRaised when a Dag cannot be deserialized.
This exception should be raised using exception chaining: raise DeserializationError(dag_id) from original_exception
- dag_id = None[source]
- exception airflow.exceptions.AirflowClearRunningTaskException[source]
Bases:
airflow.sdk.exceptions.AirflowExceptionRaise when the user attempts to clear currently running tasks.
- airflow.exceptions.__getattr__(name)[source]
Provide backward compatibility for moved exceptions.