Django integration with schedule module
Project description
django-easy-schedule
Integration of Python schedule library with Django
Installation
Add "django_easy_schedule"
to your INSTALLED_APPS
settings like this:
INSTALLED_APPS = (
"django_easy_schedule",
...
)
Usage
Create a file named jobs.py
in any installed app, like this:
from schedule import every, repeat
@repeat(every(1).seconds)
def run_job():
try:
## Do your work here
pass
except KeyboardInterrupt:
pass
Running jobs
To run the jobs use the following command
python manage.py jobs run
More documentation
For more information check the documentation of schedule
package.
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
Close
Hashes for django-easy-schedule-0.1.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | eeed24371abc6e7707cca0906b8da5f7710fe778bf6cded8226eeb089ebaebae |
|
MD5 | ddd1bf98188e5ed2d7a4f6a881ad9bc2 |
|
BLAKE2b-256 | 1deb20283c80d7f7370ea4ff19efdf7aaf5df1000a7dd4c22eff7287d5378a8d |
Close
Hashes for django_easy_schedule-0.1.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb2ec8d828ad0e6f69ffa43767d4059551b0c30a11071ffe6a7bdf716e32be17 |
|
MD5 | f7545c131b1bb2dbc6fcdfe6e74a4f66 |
|
BLAKE2b-256 | a4f86261dc0acec172938850f0cfb445edd6de58a76963deb86df7030b255165 |