MCPcopy
hub / github.com/celery/celery / reject

Method reject

celery/worker/request.py:668–672  ·  view source on GitHub ↗
(self, requeue=False)

Source from the content-addressed store, hash-verified

666 self.acknowledged = True
667
668 def reject(self, requeue=False):
669 if not self.acknowledged:
670 self._on_reject(logger, self._connection_errors, requeue)
671 self.acknowledged = True
672 self.send_event('task-rejected', requeue=requeue)
673
674 def info(self, safe=False):
675 return {

Callers 4

executeMethod · 0.95
on_failureMethod · 0.95
test_rejectMethod · 0.80
task_message_handlerFunction · 0.80

Calls 1

send_eventMethod · 0.95

Tested by 1

test_rejectMethod · 0.64