MCPcopy
hub / github.com/celery/celery / redis_echo

Function redis_echo

t/integration/tasks.py:268–271  ·  view source on GitHub ↗

Task that appends the message to a redis list.

(message, redis_key="redis-echo")

Source from the content-addressed store, hash-verified

266
267@shared_task
268def redis_echo(message, redis_key="redis-echo"):
269 """Task that appends the message to a redis list."""
270 redis_connection = get_redis_connection()
271 redis_connection.rpush(redis_key, message)
272
273
274@shared_task(bind=True)

Callers

nothing calls this directly

Calls 2

get_redis_connectionFunction · 0.85
rpushMethod · 0.80

Tested by

no test coverage detected