summaryrefslogtreecommitdiff
path: root/api.py
diff options
context:
space:
mode:
Diffstat (limited to 'api.py')
-rw-r--r--api.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/api.py b/api.py
index 36432ed..c62b3c4 100644
--- a/api.py
+++ b/api.py
@@ -167,7 +167,7 @@ class Worker(object):
try:
await self._work()
except LookupError:
- await asyncio.sleep(10)
+ await asyncio.sleep(1)
async def start(self, number=1):
"""Start jobs in background."""
@@ -180,7 +180,7 @@ async def startup():
source_db, dest_db
)
await worker.setup()
- await worker.start(10)
+ await worker.start(4)
logging.basicConfig(level=logging.DEBUG)
loop = asyncio.get_event_loop()