Waits for a long task to start.
()
| 63 | |
| 64 | |
| 65 | def 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) |
no outgoing calls