urd is a high level framework built on django
Project description
Urd is a scheduler for Django projects. Some features:
schedule < 1m time slots
single concurrent execution [1]
fast enable/disable [2]
simple deployment
no extra dependencies beyond Django
Setup
Install urd pip install urd
Add urd to INSTALLED_APPS
Run manage.py migrate
Start the scheduler with manage.py monitor
Usage
Define a tasks.py module in the app that should have tasks.
Create a function like this:
@schedulable_task
def my_task(heartbeat):
for foo in bar:
heartbeat()
do_some_task()
Calling heartbeat() regularly is important to make the task cancellable in a timely manner.
Now define a task in the iommi admin. It will be enabled pretty much as soon as you save.
Administration
Urd ships with integration for the iommi admin.
What does urd mean?
Urd (or Urðr, or Wyrd) is one of the Norns, the goddesses who weave the destiny of gods and humans.
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
File details
Details for the file urd-1.0.0.tar.gz
.
File metadata
- Download URL: urd-1.0.0.tar.gz
- Upload date:
- Size: 12.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 94715b24e033632fe81d2249839bf20ebb5b0da62a5a6fc1bbbf516925afff68 |
|
MD5 | 0744a50b93ab785af2df52a3736b1d04 |
|
BLAKE2b-256 | 4977a6cb7194e56dbda2bd1d896496c4c63a4d11ffed7482533c0e6001acf07e |
File details
Details for the file urd-1.0.0-py2.py3-none-any.whl
.
File metadata
- Download URL: urd-1.0.0-py2.py3-none-any.whl
- Upload date:
- Size: 13.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d26d5506e8b774b5c35ee7cc9d987d92f62557975895463abe93800f9b17119 |
|
MD5 | 344d81c2d58806ae1eed62b380ae5c47 |
|
BLAKE2b-256 | 8719306943a7ac62e2288677c94d1c1de2101e0d127faf0d47b506a4c3ee70a4 |