airflow.providers.anthropic.triggers.batch¶
Classes¶
Poll an Anthropic Message Batch until it reaches the terminal |
Module Contents¶
- class airflow.providers.anthropic.triggers.batch.AnthropicBatchTrigger(conn_id, batch_id, poll_interval, end_time)[source]¶
Bases:
airflow.triggers.base.BaseTriggerPoll an Anthropic Message Batch until it reaches the terminal
endedstatus.- Parameters:
conn_id (str) – The Anthropic connection ID.
batch_id (str) – The batch to poll.
poll_interval (float) – Seconds to sleep between polls.
end_time (float) – Wall-clock deadline (
time.time()epoch seconds) after which atimeoutevent is emitted. Wall-clock is used deliberately: the trigger is serialized to the metadata DB and may resume in a different triggerer process, so a per-processtime.monotonic()value would not survive serialization.