{"repo":"RealOrangeOne/django-tasks-db","free":true,"listed":false,"github":"https://github.com/RealOrangeOne/django-tasks-db","clone":"git clone https://github.com/RealOrangeOne/django-tasks-db.git","description":"An ORM-based backend for Django Tasks","language":"Python","stars":116,"topics":["background-workers","django","django-tasks"],"license":"BSD-3-Clause","category":"productivity","readme_excerpt":"Django Tasks DB A Django Tasks backend which uses Django's ORM to store tasks in the database. Installation First, add django tasks db to your INSTALLED APPS : Finally, add it to your TASKS configuration: Usage Worker You can run the db worker command to run tasks as they're created. Check the --help for more options. In DEBUG , the worker will automatically reload when code is changed (or by using --reload ). This is not recommended in production environments as tasks may not be stopped cleanly. Pruning old tasks After a while, tasks may start to build up in your database. This can be managed using the prune db task results management command, which deletes completed tasks according to the given retention policy. Check the --help for the available options. Customizing the task id By default, the database worker uses uuid.uuid4 to generate a task id. This can be customized using the id function option: The id function must return a UUID (either uuid.UUID or string representation). Additionally, the PostgreSQL-specific RandomUUID or other database expressions are supported on Django 6.0+. Contributing See CONTRIBUTING.md for information on how to contribute. Note: Prior to 0.12.0 , this backend was included in django-tasks . Whilst the commit history was cleaned up, it's still quite messy. Don't look too closely.","default_branch":null,"files":null,"tree":[],"storefront":"/r/RealOrangeOne","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/RealOrangeOne/django-tasks-db/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}