MCPcopy Create free account
hub / github.com/celery/celery / apply_entry

Method apply_entry

celery/beat.py:285–296  ·  view source on GitHub ↗
(self, entry, producer=None)

Source from the content-addressed store, hash-verified

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:

Callers 3

tickMethod · 0.95
_next_entryMethod · 0.80

Calls 3

apply_asyncMethod · 0.95
infoFunction · 0.85
debugFunction · 0.85

Tested by 1