{"action":"created","issue":{"url":"https://api.github.com/repos/steinitzu/celery-singleton/issues/7","repository_url":"https://api.github.com/repos/steinitzu/celery-singleton","labels_url":"https://api.github.com/repos/steinitzu/celery-singleton/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/steinitzu/celery-singleton/issues/7/comments","events_url":"https://api.github.com/repos/steinitzu/celery-singleton/issues/7/events","html_url":"https://github.com/steinitzu/celery-singleton/issues/7","id":317821487,"number":7,"title":"Running into an issue with DatabaseBackend","user":{"login":"sshum00","id":3541579,"avatar_url":"https://avatars2.githubusercontent.com/u/3541579?v=4","gravatar_id":"","url":"https://api.github.com/users/sshum00","html_url":"https://github.com/sshum00","followers_url":"https://api.github.com/users/sshum00/followers","following_url":"https://api.github.com/users/sshum00/following{/other_user}","gists_url":"https://api.github.com/users/sshum00/gists{/gist_id}","starred_url":"https://api.github.com/users/sshum00/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sshum00/subscriptions","organizations_url":"https://api.github.com/users/sshum00/orgs","repos_url":"https://api.github.com/users/sshum00/repos","events_url":"https://api.github.com/users/sshum00/events{/privacy}","received_events_url":"https://api.github.com/users/sshum00/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-25T22:55:06Z","updated_at":"2018-04-26T17:12:13Z","closed_at":"2018-04-26T17:12:13Z","author_association":"NONE","body":"I have my settings configured to use redis as my broker but I'm running into this when I run `task.delay()`\r\n\r\n```\r\n  File \"/Users/leothelion/virtualenv/lib/python3.6/site-packages/celery_singleton/singleton.py\", line 22, in aquire_lock\r\n    return app.backend.client.setnx(lock, task_id)\r\nAttributeError: 'DatabaseBackend' object has no attribute 'client'\r\n```\r\n\r\nThis is what my settings.py looks like\r\n\r\n```\r\nCELERY_BROKER_URL = 'redis://localhost:6379'\r\nCELERY_BACKEND_URL = 'amqp://'\r\nCELERY_ACCEPT_CONTENT = ['application/json', 'pickle']\r\nCELERY_TASK_SERIALIZER = 'pickle'\r\nCELERY_RESULT_SERIALIZER = 'pickle'\r\nCELERY_RESULT_BACKEND = 'django-db'\r\n```\r\n\r\nAre there any configs that I have to change to make celery-singleton work? Thanks"},"comment":{"url":"https://api.github.com/repos/steinitzu/celery-singleton/issues/comments/384718537","html_url":"https://github.com/steinitzu/celery-singleton/issues/7#issuecomment-384718537","issue_url":"https://api.github.com/repos/steinitzu/celery-singleton/issues/7","id":384718537,"user":{"login":"sshum00","id":3541579,"avatar_url":"https://avatars2.githubusercontent.com/u/3541579?v=4","gravatar_id":"","url":"https://api.github.com/users/sshum00","html_url":"https://github.com/sshum00","followers_url":"https://api.github.com/users/sshum00/followers","following_url":"https://api.github.com/users/sshum00/following{/other_user}","gists_url":"https://api.github.com/users/sshum00/gists{/gist_id}","starred_url":"https://api.github.com/users/sshum00/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sshum00/subscriptions","organizations_url":"https://api.github.com/users/sshum00/orgs","repos_url":"https://api.github.com/users/sshum00/repos","events_url":"https://api.github.com/users/sshum00/events{/privacy}","received_events_url":"https://api.github.com/users/sshum00/received_events","type":"User","site_admin":false},"created_at":"2018-04-26T17:12:13Z","updated_at":"2018-04-26T17:12:13Z","author_association":"NONE","body":"Figured out the issue, I was using the wrong backend"}}
{"actor":{"display_login":"sshum00"}}