{"id":20793719,"url":"https://github.com/anexia/django-future-tasks","last_synced_at":"2025-06-24T08:03:49.877Z","repository":{"id":161926682,"uuid":"629459047","full_name":"anexia/django-future-tasks","owner":"anexia","description":"A library to create a task with a specified execution/start time and schedule it to run in the future.","archived":false,"fork":false,"pushed_at":"2024-11-05T20:17:40.000Z","size":60,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-06-06T08:48:12.982Z","etag":null,"topics":["async-task","django","future-tasks","hacktoberfest"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/anexia.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-04-18T11:04:14.000Z","updated_at":"2024-11-07T09:58:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"b1159a3d-f87f-4d00-85e4-a4503faecd5c","html_url":"https://github.com/anexia/django-future-tasks","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/anexia/django-future-tasks","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anexia%2Fdjango-future-tasks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anexia%2Fdjango-future-tasks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anexia%2Fdjango-future-tasks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anexia%2Fdjango-future-tasks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anexia","download_url":"https://codeload.github.com/anexia/django-future-tasks/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anexia%2Fdjango-future-tasks/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261632031,"owners_count":23187268,"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":["async-task","django","future-tasks","hacktoberfest"],"created_at":"2024-11-17T16:11:09.827Z","updated_at":"2025-06-24T08:03:49.853Z","avatar_url":"https://github.com/anexia.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Django Future Tasks\n\n[![PyPI version](https://img.shields.io/pypi/v/django-future-tasks.svg)](https://pypi.org/project/django-future-tasks/)\n[![Run linter and tests](https://github.com/anexia/django-future-tasks/actions/workflows/test.yml/badge.svg?branch=main)](https://github.com/anexia/django-future-tasks/actions/workflows/test.yml)\n[![Codecov](https://img.shields.io/codecov/c/gh/anexia/django-future-tasks)](https://codecov.io/gh/anexia/django-future-tasks)\n\nA library to create periodic, cron-like tasks or single tasks with a specified execution/start time and schedule it to run in the future.\n\n## Installation\n\n1. Install using pip:\n\n```sh\npip install django-future-tasks\n```\n\n2. Add the library to your INSTALLED_APPS list.\n\n```python\nINSTALLED_APPS = [\n    ...\n    'django_future_tasks',\n    ...\n]\n```\n\n4. Configure the task types in your `settings.py` according to your needs:\n\n```python\n# within settings.py\n\nFUTURE_TASK_TYPE_ONE = \"task_one\"\nFUTURE_TASK_TYPE_TWO = \"task_two\"\n\nFUTURE_TASK_TYPES = (\n    (FUTURE_TASK_TYPE_ONE, _(\"Task 1\")),\n    (FUTURE_TASK_TYPE_TWO, _(\"Task 2\")),\n)\n```\n\n## Usage\n\nTo receive a signal, register a receiver function using the signal `future_task_signal` and the task type as sender.\nThe `instance` is the FutureTask object.\n\n```python\n@receiver(future_task_signal, sender=intern(settings.FUTURE_TASK_TYPE_ONE))\ndef my_function(sender, instance, **kwargs):\n    # do something\n```\n\n**Command for starting the future task processing**\n```bash\npython manage.py process_future_tasks\n```\n\n**Command for starting the periodic future task processing**\n```bash\npython manage.py populate_periodic_future_tasks\n```\n\n## Django Compatibility Matrix\n\nIf your project uses an older version of Django or Django Rest Framework, you can choose an older version of this project.\n\n| This Project | Python Version              | Django Version |\n|--------------|-----------------------------|----------------|\n| 1.3.*        | 3.9, 3.10, 3.11, 3.12, 3.13 | 4.2, 5.0, 5.1  |\n| 1.2.*        | 3.8, 3.9, 3.10, 3.11        | 3.2, 4.1, 4.2  |\n| 1.1.*        | 3.8, 3.9, 3.10, 3.11        | 3.2, 4.1, 4.2  |\n| 1.0.*        | 3.8, 3.9, 3.10, 3.11        | 3.2, 4.0, 4.1  |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanexia%2Fdjango-future-tasks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanexia%2Fdjango-future-tasks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanexia%2Fdjango-future-tasks/lists"}