airflow.providers.redis.operators.redis_publish

Module Contents

class airflow.providers.redis.operators.redis_publish.RedisPublishOperator(*, channel: str, message: str, redis_conn_id: str = 'redis_default', **kwargs)[source]

Bases: airflow.models.BaseOperator

Publish a message to Redis.

Parameters
  • channel (str) -- redis channel to which the message is published (templated)

  • message (str) -- the message to publish (templated)

  • redis_conn_id (str) -- redis connection to use

template_fields = ['channel', 'message'][source]
execute(self, context: Dict)[source]

Publish the message to Redis channel

Parameters

context (dict) -- the context object

Was this entry helpful?