Simple Pipeline Scheduler in Python
Project description
airduct
Simple Pipeline Scheduler in Python
Links
Installing
$ pip install airduct
or
$ poetry add airduct
Quickstart
Create a file and put into a folder/python-module.
from airduct import schedule, task
schedule(
name='ExampleFlow',
run_at='* * * * *',
flow=[
task('e1f1'),
[task('e1f2'), task('e1f3', can_fail=True)],
[task('e1f4')]
]
)
async def e1f1():
print('e1f1 - An async function!')
def e1f2():
print('e1f2 - Regular functions work too')
async def e1f3():
print('e1f3')
async def e1f4():
print('e1f4')
Run: $ airduct schedule --path /path/to/folder
By default it uses a sqlite in-memory database. If using the in-memory database, it will also automatically run as a worker, in addition to a scheduler. If you wish to use a non in-memory sqlite database, you will need to also run a worker (could be on same box, or separate) See the documentation for more info.
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 airduct-0.1.22.tar.gz.
File metadata
- Download URL: airduct-0.1.22.tar.gz
- Upload date:
- Size: 9.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/0.12.16 CPython/3.7.3 Linux/5.0.0-27-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
01330cde03f35b3c1f87b111cb9c58dc3315515366810b0f07634a083a6f47df
|
|
| MD5 |
45349d810d623622c5af0ece33b110a4
|
|
| BLAKE2b-256 |
d61258d09fc2c4a2e0a99c13fa1fe0d89e7d023ff3b5be36b8cfe65ddb2f520e
|
File details
Details for the file airduct-0.1.22-py3-none-any.whl.
File metadata
- Download URL: airduct-0.1.22-py3-none-any.whl
- Upload date:
- Size: 10.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/0.12.16 CPython/3.7.3 Linux/5.0.0-27-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
58be872345aae522a45c81ca06ce5cff2897f5141281920d354bcf4ae5c498e4
|
|
| MD5 |
15eefdde34e4b591ee3592ac44c47cfa
|
|
| BLAKE2b-256 |
aea7277c042e94058e21eb08aa54e2018204a744580cf01a277d377d9ddb7b53
|