diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-03-19 15:39:17 +0100 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-03-19 15:39:17 +0100 |
| commit | 0b0b612c3343eaf0eff86d39b4a4769c52146d1a (patch) | |
| tree | f6a3b3b4c3dd77c15eb20f1e7108d7bedfc81607 | |
| parent | bb713d3873cba27e3349b31cd8dc35c3c76f9cae (diff) | |
| download | compiler-1.5.0.tar.gz compiler-1.5.0.zip | |
kill process when the worker crashes, increase batch limit1.5.0
| -rw-r--r-- | api.py | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -80,15 +80,13 @@ class Compiler(joblib.worker.Worker): async def startup(): - for _ in range(1): - worker = Compiler() - await worker.connect(db_config, queue_db) - await worker.setup() - await worker.start(batchlimit=750) + worker = Compiler() + await worker.connect(db_config, queue_db) + await worker.setup() + await worker.run(batchlimit=1000) logging.basicConfig(level=logging.DEBUG) loop = asyncio.get_event_loop() loop.run_until_complete(startup()) -loop.run_forever() |
