MCPcopy
hub / github.com/celery/celery / apply_entry

Method apply_entry

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

Source from the content-addressed store, hash-verified

277 self.update_from_dict(entries)
278
279 def apply_entry(self, entry, producer=None):
280 info('Scheduler: Sending due task %s (%s)', entry.name, entry.task)
281 try:
282 result = self.apply_async(entry, producer=producer, advance=False)
283 except Exception as exc: # pylint: disable=broad-except
284 error('Message Error: %s\n%s',
285 exc, traceback.format_stack(), exc_info=True)
286 else:
287 if result and hasattr(result, 'id'):
288 debug('%s sent. id->%s', entry.task, result.id)
289 else:
290 debug('%s sent.', entry.task)
291
292 def adjust(self, n, drift=-0.010):
293 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