A lightweight local task orchestration system built on windows task scheduler
Project description
Datalys2 Tasks
A lightweight, local task orchestration system built for Windows.
dl2-tasks (Datalys2 Tasks) is a robust wrapper around the native Windows Task Scheduler. It provides a modern Python interface for scheduling, managing, and monitoring background tasks without the need for a heavy, always-on server process.
🌟 Features
- No Background Process Required: Leverages Windows' built-in
schtasks.exe. - Self-Scheduling Scripts: Add
schedule_me()to your script, run it once, and it's scheduled forever. - Lightweight: Minimal dependencies.
- Robust: If Python crashes, the scheduler remains.
📦 Installation
pip install dl2-tasks
🚀 Quick Start
Auto-Scheduling (The "Magic" Way)
The easiest way to use Datalys2 Tasks is to let your scripts schedule themselves.
-
Create
my_task.py:import datetime from datalys2_tasks.scheduler.autorun import schedule_me def job(): with open("log.txt", "a") as f: f.write(f"Ran at {datetime.datetime.now()}\n") if __name__ == "__main__": # Registers this script to run everyday at 08:00 schedule_me("MyDailyLog", frequency="DAILY", at="08:00") job()
-
Run it once manually:
python my_task.py -
That's it! Windows will now run this script every day at 08:00.
CLI Management
You can also manage tasks via the command line.
- List tasks:
datalys2-server schedule list - Add a task:
datalys2-server schedule add "Backup" "C:\scripts\backup.py" --schedule DAILY --time 02:00 - Run manually:
datalys2-server schedule run "Backup"
🖥️ Optional Dashboard
Includes a local dashboard for viewing task status.
datalys2-server start
Opens http://localhost:8000/dashboard
For full details, see the documentation.
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 dl2_tasks-0.1.0.tar.gz.
File metadata
- Download URL: dl2_tasks-0.1.0.tar.gz
- Upload date:
- Size: 17.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0f70edb4d3353158cccb92f2f495512445953bfb2a6463927ab39016f46eac76
|
|
| MD5 |
7e877f67353e7b176b3006112d1ffeec
|
|
| BLAKE2b-256 |
b6f6b61efc1bf20c24a266d0984c96f096c2b53453e9ad38a35689159bd9169a
|
File details
Details for the file dl2_tasks-0.1.0-py3-none-any.whl.
File metadata
- Download URL: dl2_tasks-0.1.0-py3-none-any.whl
- Upload date:
- Size: 19.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fd89d566ddaf156f958eb96207e3402bfe1d49ea0f7e768426571e88d9271420
|
|
| MD5 |
60c3c44521e3e7c80c44f31fb402c224
|
|
| BLAKE2b-256 |
5e069a3cdac72d0da9af8d74c8456ee879673c97a2c65b2197a593ff38794517
|