diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-03-13 21:13:36 +0100 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-03-13 21:13:36 +0100 |
| commit | 0f4f10d2d83eab44e23a068be84aa59caaf1d308 (patch) | |
| tree | ebeb06795c3e586e0744d18e6b3c26ff68ef53a4 /api.py | |
| parent | 582c4b2708d2d18a276905598296acd6bca95411 (diff) | |
| download | processor-0f4f10d2d83eab44e23a068be84aa59caaf1d308.tar.gz processor-0f4f10d2d83eab44e23a068be84aa59caaf1d308.zip | |
use joblib notifications
Diffstat (limited to 'api.py')
| -rw-r--r-- | api.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -82,12 +82,12 @@ class Processor(joblib.worker.Worker): await self._srctr.commit() await self._desttr.commit() - await self._queue.request( + await self.request( jobtype="compile", payload=self._compilejobs, priority=self._priorities) if self._do_analyze: - await self._queue.request( + await self.request( jobtype="analyze", payload=self._analyzejobs) @@ -100,7 +100,7 @@ class Processor(joblib.worker.Worker): "filter[gameMode]": "casual,ranked" } } for s in self._preloads] - await self._queue.request( + await self.request( jobtype="preload", payload=preloadjobs, priority=[2]*len(preloadjobs)) |
