Periodic/cron task scheduling for django-tasks. Backend-agnostic replacement for celery-beat.
Project description
django-periodic-tasks
Periodic/cron task scheduling for django-tasks. Backend-agnostic replacement for celery-beat + django-celery-beat.
Installation
pip install django-periodic-tasks
Add to INSTALLED_APPS:
INSTALLED_APPS = [
...
"django_periodic_tasks",
]
Usage
Define scheduled tasks
from django_tasks import task
from django_periodic_tasks import scheduled_task
@scheduled_task(cron="0 5 * * *", name="daily-report")
@task()
def daily_report() -> None:
...
Run the scheduler
Enable the autostart setting so the scheduler runs as a daemon thread inside your Django process:
# settings.py
PERIODIC_TASKS_AUTOSTART = True
Or run it as a standalone process:
python manage.py run_scheduler
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django_periodic_tasks-0.2.0.tar.gz.
File metadata
- Download URL: django_periodic_tasks-0.2.0.tar.gz
- Upload date:
- Size: 702.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
32f9d2251407b9d0d2038ae7bcf83a3704e2cae7829c80bb3c563492b51e0659
|
|
| MD5 |
2c8ef2b3fcb8b6d87e342424e604b5e7
|
|
| BLAKE2b-256 |
f096994d356b8686f8a2d18a49ad356b8ca060181c6736568975a8f147bf7275
|
Provenance
The following attestation bundles were made for django_periodic_tasks-0.2.0.tar.gz:
Publisher:
.gitlab-ci.yml on thelabnyc/django-periodic-tasks
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
django_periodic_tasks-0.2.0.tar.gz -
Subject digest:
32f9d2251407b9d0d2038ae7bcf83a3704e2cae7829c80bb3c563492b51e0659 - Sigstore transparency entry: 937555496
- Sigstore integration time:
-
Permalink:
thelabnyc/django-periodic-tasks@61e81f1a820d37f25d9b88b6fa418fc3451feab1 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://gitlab.com/thelabnyc
-
Access:
public
-
Token Issuer:
https://gitlab.com -
Runner Environment:
self-hosted -
Publication workflow:
.gitlab-ci.yml@61e81f1a820d37f25d9b88b6fa418fc3451feab1 -
Trigger Event:
push
-
Statement type:
File details
Details for the file django_periodic_tasks-0.2.0-py3-none-any.whl.
File metadata
- Download URL: django_periodic_tasks-0.2.0-py3-none-any.whl
- Upload date:
- Size: 20.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
425f72a0df870b07265b218e14343737d590dc94a20da22c1efed6bde12f1afb
|
|
| MD5 |
da1508acafedd990be91c3121de53b71
|
|
| BLAKE2b-256 |
4fa1091a48f654d98a5e8836ac18a9ee95169704b6868751d7f4d3a5c471d90a
|
Provenance
The following attestation bundles were made for django_periodic_tasks-0.2.0-py3-none-any.whl:
Publisher:
.gitlab-ci.yml on thelabnyc/django-periodic-tasks
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
django_periodic_tasks-0.2.0-py3-none-any.whl -
Subject digest:
425f72a0df870b07265b218e14343737d590dc94a20da22c1efed6bde12f1afb - Sigstore transparency entry: 937555486
- Sigstore integration time:
-
Permalink:
thelabnyc/django-periodic-tasks@61e81f1a820d37f25d9b88b6fa418fc3451feab1 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://gitlab.com/thelabnyc
-
Access:
public
-
Token Issuer:
https://gitlab.com -
Runner Environment:
self-hosted -
Publication workflow:
.gitlab-ci.yml@61e81f1a820d37f25d9b88b6fa418fc3451feab1 -
Trigger Event:
push
-
Statement type: