diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-02-28 18:25:34 +0100 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-02-28 18:25:34 +0100 |
| commit | cfa29e50a193137ec7f47fa82429035dfa4a81e7 (patch) | |
| tree | a83eb745c56683b0fbc04ba4c1ca40797475f7d5 | |
| parent | c1f3ee04077420be4ac016d9fc8af9f1ccc8d787 (diff) | |
| download | compiler-cfa29e50a193137ec7f47fa82429035dfa4a81e7.tar.gz compiler-cfa29e50a193137ec7f47fa82429035dfa4a81e7.zip | |
reduce default worker idle cooldown
| -rw-r--r-- | api.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -82,7 +82,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.""" @@ -93,7 +93,7 @@ async def startup(): worker = Worker() await worker.connect(db_config, queue_db) await worker.setup() - await worker.start(10) + await worker.start(4) logging.basicConfig(level=logging.DEBUG) loop = asyncio.get_event_loop() |
