diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-02-28 18:25:39 +0100 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-02-28 18:25:39 +0100 |
| commit | c1a46083f90e8877ff45d79b55414115363ffdb6 (patch) | |
| tree | 070f3684266de0b23b608e1d8608577c9a82cbda /api.py | |
| parent | 0da3a298562bede77e596ff3dd8d9879c900319a (diff) | |
| download | processor-c1a46083f90e8877ff45d79b55414115363ffdb6.tar.gz processor-c1a46083f90e8877ff45d79b55414115363ffdb6.zip | |
reduce default worker idle cooldown
Diffstat (limited to 'api.py')
| -rw-r--r-- | api.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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() |
