MCPcopy
hub / github.com/celery/celery / as_uri

Method as_uri

celery/backends/cache.py:157–163  ·  view source on GitHub ↗

Return the backend as an URI. This properly handles the case of multiple servers.

(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

155 return super().__reduce__(args, kwargs)
156
157 def as_uri(self, *args, **kwargs):
158 """Return the backend as an URI.
159
160 This properly handles the case of multiple servers.
161 """
162 servers = ';'.join(self.servers)
163 return f'{self.backend}://{servers}/'

Callers 2

Calls 1

joinMethod · 0.45

Tested by 2