Process task by sending it to the pool of workers.
(self, req)
| 289 | return self._quick_acquire(self._process_task, req) |
| 290 | |
| 291 | def _process_task(self, req): |
| 292 | """Process task by sending it to the pool of workers.""" |
| 293 | try: |
| 294 | req.execute_using_pool(self.pool) |
| 295 | except TaskRevokedError: |
| 296 | try: |
| 297 | self._quick_release() # Issue 877 |
| 298 | except AttributeError: |
| 299 | pass |
| 300 | |
| 301 | def signal_consumer_close(self): |
| 302 | try: |