This document describes the current stable version of Celery (4.0). For development docs, go here.
celery.backends.consul¶
Consul result store backend.
ConsulBackend
implements KeyValueStoreBackend to store resultsin the key-value store of Consul.
-
class
celery.backends.consul.
ConsulBackend
(*args, **kwargs)[source]¶ Consul.io K/V store backend for Celery.
-
client
= None¶
-
consistency
= u'consistent'¶
-
consul
= None¶
-
path
= None¶
-
set
(key, value)[source]¶ Set a key in Consul.
Before creating the key it will create a session inside Consul where it creates a session with a TTL
The key created afterwards will reference to the session’s ID.
If the session expires it will remove the key so that results can auto expire from the K/V store
-
supports_autoexpire
= True¶
-