diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-02-28 18:25:27 +0100 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-02-28 18:25:27 +0100 |
| commit | 8c58bedca6be1102264d1092feeaf5f4f41939b3 (patch) | |
| tree | 5ae43af1edd523c1f6433034e13ea31f92944c11 | |
| parent | a9070c0c5cfb70a15900129e09c8547af53db7df (diff) | |
| download | apigrabber-8c58bedca6be1102264d1092feeaf5f4f41939b3.tar.gz apigrabber-8c58bedca6be1102264d1092feeaf5f4f41939b3.zip | |
reduce default worker idle cooldown
| -rw-r--r-- | api.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -79,7 +79,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.""" @@ -98,7 +98,7 @@ async def startup(): database=os.environ["POSTGRESQL_DB"] ) await worker.setup() - await worker.start() + await worker.start(2) logging.basicConfig(level=logging.DEBUG) loop = asyncio.get_event_loop() |
