airflow.providers.openai.exceptions

Exceptions

OpenAIBatchJobException

Raise when OpenAI Batch Job fails to start AFTER processing the request.

OpenAIBatchCancelled

Raise when an OpenAI Batch Job was cancelled.

OpenAIBatchTimeout

Raise when OpenAI Batch Job times out.

OpenAITriggerEventError

Raise when a deferred task resumes with a missing or malformed trigger event.

OpenAIAgentSessionError

Raise when a Managed Agents session fails or cannot run.

Module Contents

exception airflow.providers.openai.exceptions.OpenAIBatchJobException[source]

Bases: airflow.providers.common.compat.sdk.AirflowException

Raise when OpenAI Batch Job fails to start AFTER processing the request.

exception airflow.providers.openai.exceptions.OpenAIBatchCancelled[source]

Bases: OpenAIBatchJobException

Raise when an OpenAI Batch Job was cancelled.

Cancellation is a decision, not a failure, so it gets its own subclass: callers that want to distinguish “someone cancelled this batch” from “the batch failed” can catch this specifically, while existing handlers written against OpenAIBatchJobException keep working unchanged.

exception airflow.providers.openai.exceptions.OpenAIBatchTimeout[source]

Bases: airflow.providers.common.compat.sdk.AirflowException

Raise when OpenAI Batch Job times out.

exception airflow.providers.openai.exceptions.OpenAITriggerEventError[source]

Bases: airflow.providers.common.compat.sdk.AirflowException

Raise when a deferred task resumes with a missing or malformed trigger event.

exception airflow.providers.openai.exceptions.OpenAIAgentSessionError[source]

Bases: airflow.providers.common.compat.sdk.AirflowException

Raise when a Managed Agents session fails or cannot run.

Was this entry helpful?