MCPcopy
hub / github.com/celery/celery / prepare_expires

Method prepare_expires

celery/backends/base.py:535–542  ·  view source on GitHub ↗
(self, value, type=None)

Source from the content-addressed store, hash-verified

533 accept=self.accept)
534
535 def prepare_expires(self, value, type=None):
536 if value is None:
537 value = self.app.conf.result_expires
538 if isinstance(value, timedelta):
539 value = value.total_seconds()
540 if value is not None and type:
541 return type(value)
542 return value
543
544 def prepare_persistent(self, enabled=None):
545 if enabled is not None:

Callers 2

__init__Method · 0.95
__init__Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected