{"id":17003035,"url":"https://github.com/50-course/celery-class-based-tasks-postmortem","last_synced_at":"2025-06-15T02:08:43.452Z","repository":{"id":234531337,"uuid":"789079710","full_name":"50-Course/celery-class-based-tasks-postmortem","owner":"50-Course","description":"Postmortem repository to reproduce `leaking state between class-based tasks` - Ticket #8972 @celery/celery","archived":false,"fork":false,"pushed_at":"2024-04-20T14:27:57.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-22T09:43:45.481Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/50-Course.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-19T17:00:50.000Z","updated_at":"2024-04-20T14:28:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"27c73b0c-36f3-4234-9776-70d8a34564aa","html_url":"https://github.com/50-Course/celery-class-based-tasks-postmortem","commit_stats":null,"previous_names":["50-course/celery-class-based-tasks-postmortem"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/50-Course/celery-class-based-tasks-postmortem","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/50-Course%2Fcelery-class-based-tasks-postmortem","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/50-Course%2Fcelery-class-based-tasks-postmortem/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/50-Course%2Fcelery-class-based-tasks-postmortem/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/50-Course%2Fcelery-class-based-tasks-postmortem/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/50-Course","download_url":"https://codeload.github.com/50-Course/celery-class-based-tasks-postmortem/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/50-Course%2Fcelery-class-based-tasks-postmortem/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259910730,"owners_count":22930711,"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":[],"created_at":"2024-10-14T04:29:37.601Z","updated_at":"2025-06-15T02:08:43.413Z","avatar_url":"https://github.com/50-Course.png","language":"Python","readme":"Post-mortem: Leaking state between class based tasks\n\nTicket No: `#8972`\n\nThis repository aims to perform post-mortem of the production bug in @celery organization.\n\nReference: https://github.com/celery/celery/issues/8972\n\nBug description:\n\n\u003e I have a list defined in my **init** method of my task. As the task runs things are appended to the list. I'm noticing that the class is only instantiated once. The list attached to self seems to persist between jobs. This seems very unintuitive and seems like it could lead to concurrency issues with a thread based worker.\n\nInstallation\n\nTo install the dependencies, run as follows in a virtual environment:\n\n```sh\n$ pip install -r requirements.txt\n```\n\nUsage\n\nTo run the test case, execute the following command:\n\n```sh\n$ python test.py\n```\n\nor with Docker, no installations required other than docker on your machine:\n\n```sh\n$ docker compose up\n```\n\nBug tracker\n\nPlease report error regarding this issue to official `celery` repository. Or continue the discussion at: celery/celery#8972\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F50-course%2Fcelery-class-based-tasks-postmortem","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F50-course%2Fcelery-class-based-tasks-postmortem","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F50-course%2Fcelery-class-based-tasks-postmortem/lists"}