---
title: "Comment by Pavel Duda on \"Celery Tasks: A Guide to SQLAlchemy Session Handling\" | Hashnode"
description: "Not sure if I'm doing something wrong but in my case the self.sessions is empty when I try to access it, I can see it is populated with value set in the init ."
url: "https://hashnode.com/posts/sqlalchemy-session-celery-tasks/658f197ffacd728cd40d493c/comment/65b41c80ccca7d5ef278baf4"
---

[Discussion](https://hashnode.com/posts/sqlalchemy-session-celery-tasks/658f197ffacd728cd40d493c)

Comment [Celery Tasks: A Guide to SQLAlchemy Session Handling](https://hashnode.com/posts/sqlalchemy-session-celery-tasks/658f197ffacd728cd40d493c)

[Pavel Duda](https://hashnode.com/@GhuulCZ)

[Jan 26, 2024](https://hashnode.com/posts/sqlalchemy-session-celery-tasks/658f197ffacd728cd40d493c/comment/65b41c80ccca7d5ef278baf4)

Not sure if I'm doing something wrong but in my case the self.sessions is empty when I try to access it, I can see it is populated with value set in the **init**. Actually anything with property decorator ends up with values set in **init** even if I see that before and after shows the values

[Bjoern Stiel](https://hashnode.com/@bstiel)

[Feb 1, 2024](https://hashnode.com/posts/sqlalchemy-session-celery-tasks/658f197ffacd728cd40d493c/comment/65b41c80ccca7d5ef278baf4#reply-65bb7c3eaf5fdd99c89ae73a)

Can you share your code in a gist or something?
