tests.system.redis.example_redis_publish

This is an example DAG which uses RedisPublishOperator, RedisPubSubSensor and RedisKeySensor. In this example, we create 3 tasks which execute sequentially. The first task is to publish a particular message to redis using the RedisPublishOperator. The second task is to wait for a particular message at a particular channel to arrive in redis using the RedisPubSubSensor, and the third task is to wait for a particular key to arrive in redis using the RedisKeySensor.

Module Contents

tests.system.redis.example_redis_publish.ENV_ID[source]
tests.system.redis.example_redis_publish.default_args[source]
tests.system.redis.example_redis_publish.publish_task[source]
tests.system.redis.example_redis_publish.test_run[source]

Was this entry helpful?