MCPcopy Create free account
hub / github.com/python-arq/arq / test_repeat_job_result

Function test_repeat_job_result

tests/test_worker.py:630–640  ·  view source on GitHub ↗
(arq_redis: ArqRedis, worker)

Source from the content-addressed store, hash-verified

628
629
630async def test_repeat_job_result(arq_redis: ArqRedis, worker):
631 j1 = await arq_redis.enqueue_job('foobar', _job_id='job_id')
632 assert isinstance(j1, Job)
633 assert await j1.status() == JobStatus.queued
634
635 assert await arq_redis.enqueue_job('foobar', _job_id='job_id') is None
636
637 await worker(functions=[foobar]).run_check()
638 assert await j1.status() == JobStatus.complete
639
640 assert await arq_redis.enqueue_job('foobar', _job_id='job_id') is None
641
642
643async def test_queue_read_limit_equals_max_jobs(arq_redis: ArqRedis, worker):

Callers

nothing calls this directly

Calls 4

workerFunction · 0.85
enqueue_jobMethod · 0.80
statusMethod · 0.80
run_checkMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…