@@ -25,7 +25,7 @@ async def foobar(ctx):
2525 j = await arq_redis .enqueue_job ('foobar' )
2626 worker : Worker = worker (functions = [func (foobar , name = 'foobar' )])
2727 await worker .main ()
28- r = await j .result (pole_delay = 0 )
28+ r = await j .result (poll_delay = 0 )
2929 assert r == 42 # 1
3030
3131
@@ -40,8 +40,8 @@ async def foobar(ctx):
4040
4141 await worker1 .main ()
4242 await worker2 .main ()
43- r1 = await j1 .result (pole_delay = 0 )
44- r2 = await j2 .result (pole_delay = 0 )
43+ r1 = await j1 .result (poll_delay = 0 )
44+ r2 = await j2 .result (poll_delay = 0 )
4545 assert r1 == 42 # 1
4646 assert r2 == 42 # 2
4747
@@ -58,10 +58,10 @@ async def parent_job(ctx):
5858 worker : Worker = worker (functions = [func (parent_job , name = 'parent_job' ), func (foobar , name = 'foobar' )])
5959
6060 await worker .main ()
61- result = await job .result (pole_delay = 0 )
61+ result = await job .result (poll_delay = 0 )
6262 assert result is not None
6363 inner_job = Job (result , arq_redis )
64- inner_result = await inner_job .result (pole_delay = 0 )
64+ inner_result = await inner_job .result (poll_delay = 0 )
6565 assert inner_result == 42
6666
6767
@@ -83,10 +83,10 @@ async def parent_job(ctx):
8383 )
8484
8585 await worker .main ()
86- result = await job .result (pole_delay = 0 )
86+ result = await job .result (poll_delay = 0 )
8787 assert result is not None
8888 inner_job = Job (result , arq_redis_msgpack , _deserializer = functools .partial (msgpack .unpackb , raw = False ))
89- inner_result = await inner_job .result (pole_delay = 0 )
89+ inner_result = await inner_job .result (poll_delay = 0 )
9090 assert inner_result == 42
9191
9292
@@ -107,10 +107,10 @@ async def parent_job(ctx):
107107 )
108108
109109 await worker .main ()
110- inner_job_id = await job .result (pole_delay = 0 )
110+ inner_job_id = await job .result (poll_delay = 0 )
111111 assert inner_job_id is not None
112112 inner_job = Job (inner_job_id , arq_redis , _queue_name = 'spanner' )
113- inner_result = await inner_job .result (pole_delay = 0 )
113+ inner_result = await inner_job .result (poll_delay = 0 )
114114 assert inner_result == 42
115115
116116
@@ -123,7 +123,7 @@ async def foobar(ctx):
123123 await worker .main ()
124124
125125 with pytest .raises (RuntimeError , match = 'foobar error' ):
126- await j .result (pole_delay = 0 )
126+ await j .result (poll_delay = 0 )
127127
128128
129129async def test_job_info (arq_redis : ArqRedis ):
@@ -190,12 +190,12 @@ async def foobar(ctx):
190190 j1 = await arq_redis .enqueue_job ('foobar' )
191191 w : Worker = worker (functions = [func (foobar , name = 'foobar' )])
192192 await w .main ()
193- r = await j1 .result (pole_delay = 0 )
193+ r = await j1 .result (poll_delay = 0 )
194194 assert r == 1
195195
196196 j2 = await arq_redis .enqueue_job ('foobar' , _job_try = 3 )
197197 await w .main ()
198- r = await j2 .result (pole_delay = 0 )
198+ r = await j2 .result (poll_delay = 0 )
199199 assert r == 3
200200
201201
@@ -208,7 +208,7 @@ async def foobar(ctx):
208208 j1 = await arq_redis .enqueue_job ('foobar' , _job_try = 3 )
209209 w : Worker = worker (functions = [func (foobar , name = 'foobar' )])
210210 await w .main ()
211- r = await j1 .result (pole_delay = 0 )
211+ r = await j1 .result (poll_delay = 0 )
212212 assert r == 4
213213
214214
@@ -233,7 +233,7 @@ async def foobar(ctx):
233233 w : Worker = worker (functions = [func (foobar , name = 'foobar' )])
234234 await w .main ()
235235 with pytest .raises (SerializationError , match = 'unable to serialize result' ):
236- await j1 .result (pole_delay = 0 )
236+ await j1 .result (poll_delay = 0 )
237237
238238
239239async def test_get_jobs (arq_redis : ArqRedis ):
0 commit comments