{"id":18364455,"url":"https://github.com/kidig/celery-sentinel","last_synced_at":"2025-06-16T07:08:43.220Z","repository":{"id":52297162,"uuid":"363270822","full_name":"kidig/celery-sentinel","owner":"kidig","description":"Celery broker for Redis-Sentinel","archived":false,"fork":false,"pushed_at":"2021-04-30T23:23:22.000Z","size":6,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-29T16:14:51.533Z","etag":null,"topics":["broker","celery","redis","sentinel"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kidig.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-04-30T22:13:25.000Z","updated_at":"2024-09-13T16:37:21.000Z","dependencies_parsed_at":"2022-09-05T22:20:48.322Z","dependency_job_id":null,"html_url":"https://github.com/kidig/celery-sentinel","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/kidig/celery-sentinel","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kidig%2Fcelery-sentinel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kidig%2Fcelery-sentinel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kidig%2Fcelery-sentinel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kidig%2Fcelery-sentinel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kidig","download_url":"https://codeload.github.com/kidig/celery-sentinel/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kidig%2Fcelery-sentinel/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260116643,"owners_count":22961065,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["broker","celery","redis","sentinel"],"created_at":"2024-11-05T23:10:24.045Z","updated_at":"2025-06-16T07:08:43.197Z","avatar_url":"https://github.com/kidig.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# celery-sentinel\n\nCelery broker for [Redis Sentinel](http://redis.io/topics/sentinel)\n\n## Installation\n\nAs simple as possible:\n\n```pip install celery-sentinel```\n\n## Usage\n\nSetup celery broker:\n\n```python\n#  settings.py\n\nBROKER_URL='redis-sentinel://redis-sentinel:26379/0'\n\nBROKER_TRANSPORT_OPTIONS = {\n    'sentinels': [('192.168.1.1', 26379),\n                  ('192.168.1.2', 26379),\n                  ('192.168.1.3', 26379)],\n    'service_name': 'master',\n    'socket_timeout': 0.1,\n}\n```\n\nConfigure celery app:\n\n```python\n# celery_app.py\nimport os\n\nfrom celery_sentinel import Celery\n\n# set the default Django settings module for the 'celery' program.\nos.environ.setdefault(\"DJANGO_SETTINGS_MODULE\", \"config.settings.local\")\n\napp = Celery(\"your-project\")\n\n# Using a string here means the worker doesn't have to serialize\n# the configuration object to child processes.\n# - namespace='CELERY' means all celery-related configuration keys\n#   should have a `CELERY_` prefix.\napp.config_from_object(\"django.conf:settings\", namespace=\"CELERY\")\n\n# Load task modules from all registered Django app configs.\napp.autodiscover_tasks()\n```\n\nThen use the celery as usual.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkidig%2Fcelery-sentinel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkidig%2Fcelery-sentinel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkidig%2Fcelery-sentinel/lists"}