MCPcopy Create free account
hub / github.com/celery/celery / redis_echo

Function redis_echo

t/integration/tasks.py:363–366  ·  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

361
362@shared_task
363def redis_echo(message, redis_key="redis-echo"):
364 """Task that appends the message to a redis list."""
365 redis_connection = get_redis_connection()
366 redis_connection.rpush(redis_key, message)
367
368
369@shared_task(bind=True)

Callers 2

Calls 2

get_redis_connectionFunction · 0.85
rpushMethod · 0.80

Tested by

no test coverage detected