celery_redis_sentinel.register module¶
-
celery_redis_sentinel.register.get_class_path(cls)[source]¶ Get full Python dot-notation path for the given class
Parameters: cls (type) – Class object Returns: Full Python dot-notation path of the class object. For example 'celery_redis_sentinel.transport.SentinelTransport'is returned forSentinelTransport.Return type: str
-
celery_redis_sentinel.register.register(alias=u'redis-sentinel')[source]¶ Function to register sentinel transport and results backend into Celery’s registry
Note
This function should be used before configuring celery app (e.g. via
app.config_from_object()method)Parameters: alias (str, optional) – Alias name to use for the sentinel support. This is the host name which will be used in the celery config (e.g. redis-sentinel://localhost). By default'redis-sentinel'is used.