RQ integration not work

Hello. I have redis server in one container that builded just from the docker image, and connected to it rq worker. In my settengs.py file specified redis host, port, db, password and queue. Also near the settings.py located the jobs.py file, that just contain functions, that can process events from queqe.

And now, like in instruction, i perform sentry init with rq integrations in my settings.py file. And it’s not work. I steel can’t capture exceptions, that’s happens in my jobs.py file.

P.S. I solve this problem. In settings.py sentry must be inited before redis key declaration.

Something like:
sendry_sdk.init(…

REDIS_HOST=…
REDIST_PORT=…
REDIS_DB=…
REDIS_PASSWORD=…

QUEUEUS=[…

If write sentry init after QUEUES it will not work. Maybe it will be helpfull for someone.