MCPcopy Create free account
hub / github.com/closeio/tasktiger / wait_for_long_task

Function wait_for_long_task

tests/tasks.py:65–69  ·  view source on GitHub ↗

Waits for a long task to start.

()

Source from the content-addressed store, hash-verified

63
64
65def wait_for_long_task():
66 """Waits for a long task to start."""
67 with redis.Redis(host=REDIS_HOST, db=TEST_DB, decode_responses=True) as conn:
68 result = conn.blpop(LONG_TASK_SIGNAL_KEY, int(ceil(DELAY * 3)))
69 assert result[1] == "1"
70
71
72@tiger.task(unique=True)

Callers 2

test_max_workersMethod · 0.85

Calls

no outgoing calls

Tested by 2

test_max_workersMethod · 0.68