MCPcopy
hub / github.com/celery/celery / _ensure_not_eager

Method _ensure_not_eager

celery/backends/base.py:680–686  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

678 pass
679
680 def _ensure_not_eager(self):
681 if self.app.conf.task_always_eager and not self.app.conf.task_store_eager_result:
682 warnings.warn(
683 "Results are not stored in backend and should not be retrieved when "
684 "task_always_eager is enabled, unless task_store_eager_result is enabled.",
685 RuntimeWarning
686 )
687
688 def exception_safe_to_retry(self, exc):
689 """Check if an exception is safe to retry.

Callers 7

get_task_metaMethod · 0.95
get_group_metaMethod · 0.95
iter_nativeMethod · 0.45
wait_for_pendingMethod · 0.45
wait_forMethod · 0.45
iter_nativeMethod · 0.45
wait_for_pendingMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected