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

Function test_defer_until

tests/test_main.py:152–156  ·  view source on GitHub ↗
(arq_redis: ArqRedis)

Source from the content-addressed store, hash-verified

150
151
152async def test_defer_until(arq_redis: ArqRedis):
153 j1 = await arq_redis.enqueue_job('foobar', _job_id='job_id', _defer_until=datetime(2032, 1, 1, tzinfo=timezone.utc))
154 assert isinstance(j1, Job)
155 score = await arq_redis.zscore(default_queue_name, 'job_id')
156 assert score == 1_956_528_000_000
157
158
159async def test_defer_by(arq_redis: ArqRedis):

Callers

nothing calls this directly

Calls 1

enqueue_jobMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…