{ "info": { "author": "Martin Chase", "author_email": "outofculture@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "# django-celery-oncommit\n\nDelay all celery tasks until after the current django transaction has committed to prevent race conditions.\n\nSee the [django docs](https://docs.djangoproject.com/en/2.1/topics/db/transactions/#performing-actions-after-commit) for more details.\n\n## Usage\n\n`pip install django-celery-oncommit`\n\nIn your task file:\n\n```python\nfrom django_celery_oncommit import task\n\n@task\ndef some_task(with_args):\n \"\"\"Task that does stuff with objects\"\"\"\n pass\n```\n\nElsewhere:\n\n```python\nfrom mytasks import some_task\n\ndef function_used_in_django_code():\n create_some_objects()\n some_task.delay(args_referring_to_new_objects)\n slow_operation_that_allows_the_race_condition()\n```\n\nTa da!\n\n## TODO\n\n* provide a non-transaction-based option `apply_async` for when the user explicity knows how they want to interact with transactions\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://gitlab.com/outofculture/django-celery-oncommit", "keywords": "django celery", "license": "BSD", "maintainer": "", "maintainer_email": "", "name": "django-celery-oncommit", "package_url": "https://pypi.org/project/django-celery-oncommit/", "platform": "", "project_url": "https://pypi.org/project/django-celery-oncommit/", "project_urls": { "Homepage": "https://gitlab.com/outofculture/django-celery-oncommit" }, "release_url": "https://pypi.org/project/django-celery-oncommit/0.0.2/", "requires_dist": [ "django (>=1.11)", "celery (>=3.0)" ], "requires_python": "", "summary": "Celery wrapper that delays tasks until the django transaction has committed", "version": "0.0.2" }, "last_serial": 4266210, "releases": { "0.0.2": [ { "comment_text": "", "digests": { "md5": "b31d8549fa90df323600627c572f4ed8", "sha256": "8602ac1af6cc129c2c113d8c9e9e4955a39bebea8d8141708846172db22de3e6" }, "downloads": -1, "filename": "django_celery_oncommit-0.0.2-py2-none-any.whl", "has_sig": false, "md5_digest": "b31d8549fa90df323600627c572f4ed8", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 2394, "upload_time": "2018-09-12T19:53:16", "url": "https://files.pythonhosted.org/packages/f6/5d/a148d15439965b7e11ac3b7215a2ed3809ca26f60b3b9f33cf89d8feb28f/django_celery_oncommit-0.0.2-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "224e9a5d87f742fdbf82b0d557f8ef83", "sha256": "4e2c38262d17be928f5a36726577aa8524f0b212cf4d6b984271968ea713987e" }, "downloads": -1, "filename": "django-celery-oncommit-0.0.2.tar.gz", "has_sig": false, "md5_digest": "224e9a5d87f742fdbf82b0d557f8ef83", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1955, "upload_time": "2018-09-12T19:53:17", "url": "https://files.pythonhosted.org/packages/90/41/ba6c9499c085629bed94e5d016c2faf1354111e06fdcf83937ea1e2bcf9d/django-celery-oncommit-0.0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b31d8549fa90df323600627c572f4ed8", "sha256": "8602ac1af6cc129c2c113d8c9e9e4955a39bebea8d8141708846172db22de3e6" }, "downloads": -1, "filename": "django_celery_oncommit-0.0.2-py2-none-any.whl", "has_sig": false, "md5_digest": "b31d8549fa90df323600627c572f4ed8", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 2394, "upload_time": "2018-09-12T19:53:16", "url": "https://files.pythonhosted.org/packages/f6/5d/a148d15439965b7e11ac3b7215a2ed3809ca26f60b3b9f33cf89d8feb28f/django_celery_oncommit-0.0.2-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "224e9a5d87f742fdbf82b0d557f8ef83", "sha256": "4e2c38262d17be928f5a36726577aa8524f0b212cf4d6b984271968ea713987e" }, "downloads": -1, "filename": "django-celery-oncommit-0.0.2.tar.gz", "has_sig": false, "md5_digest": "224e9a5d87f742fdbf82b0d557f8ef83", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1955, "upload_time": "2018-09-12T19:53:17", "url": "https://files.pythonhosted.org/packages/90/41/ba6c9499c085629bed94e5d016c2faf1354111e06fdcf83937ea1e2bcf9d/django-celery-oncommit-0.0.2.tar.gz" } ] }