astronomer.providers.http.triggers.http

Classes

HttpTrigger

This class is deprecated and will be removed in 2.0.0.

Module Contents

class astronomer.providers.http.triggers.http.HttpTrigger(endpoint, http_conn_id='http_default', method='GET', data=None, headers=None, extra_options=None, poke_interval=5.0)[source]

Bases: airflow.triggers.base.BaseTrigger

This class is deprecated and will be removed in 2.0.0. Use :class: ~airflow.providers.http.triggers.http.HttpSensorTrigger instead.

endpoint
method
data
headers
extra_options
http_conn_id
poke_interval
serialize()[source]

Serializes HttpTrigger arguments and classpath.

async run()[source]

Makes a series of asynchronous http calls via an http hook. It yields a Trigger if response is a 200 and run_state is successful, will retry the call up to the retry limit if the error is ‘retryable’, otherwise it throws an exception.