Skip to content

Commit 9a3bcd9

Browse files
committed
Update rp_job.py
1 parent e34b9e0 commit 9a3bcd9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

runpod/serverless/modules/rp_job.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
import os
1010
import json
11+
import asyncio
1112
import traceback
1213
from aiohttp import ClientSession
1314

@@ -98,6 +99,8 @@ async def get_job(session: ClientSession, retry=True) -> Optional[Dict[str, Any]
9899
log.debug("No job available, waiting for the next one.")
99100
if retry is False:
100101
break
102+
103+
await asyncio.sleep(1)
101104
else:
102105
log.debug("Confirmed valid request.", next_job['id'])
103106

0 commit comments

Comments
 (0)