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

Method mget

t/unit/backends/test_base.py:1843–1850  ·  view source on GitHub ↗
(keys)

Source from the content-addressed store, hash-verified

1841 polls = []
1842
1843 def mget(keys):
1844 # nothing is stored until the second poll, which lands exactly
1845 # when the one interval of budget has been spent.
1846 polls.append(keys)
1847 if len(polls) > 1:
1848 for id, i in ids.items():
1849 self.b.mark_as_done(id, i)
1850 return [self.b.get(k) for k in keys]
1851
1852 self.b.mget = mget
1853

Callers

nothing calls this directly

Calls 3

mark_as_doneMethod · 0.80
itemsMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected