| 283 | self.update_from_dict(entries) |
| 284 | |
| 285 | def apply_entry(self, entry, producer=None): |
| 286 | info('Scheduler: Sending due task %s (%s)', entry.name, entry.task) |
| 287 | try: |
| 288 | result = self.apply_async(entry, producer=producer, advance=False) |
| 289 | except Exception as exc: # pylint: disable=broad-except |
| 290 | error('Message Error: %s\n%s', |
| 291 | exc, traceback.format_stack(), exc_info=True) |
| 292 | else: |
| 293 | if result and hasattr(result, 'id'): |
| 294 | debug('%s sent. id->%s', entry.task, result.id) |
| 295 | else: |
| 296 | debug('%s sent.', entry.task) |
| 297 | |
| 298 | def adjust(self, n, drift=-0.010): |
| 299 | if n and n > 0: |