It is mainly used for task scheduling
Project description
Task Scheduling
一个强大的 Python 任务调度库,提供灵活的任务管理和调度功能。
特性
- 🚀 简单易用的任务创建和管理
- ⏰ 灵活的定时调度策略
- 🔄 支持任务重试和依赖管理
- 🌐 内置 Web 控制界面
- 🧵 支持线程级任务执行
- 🌳 任务树模式支持
- 🔗 分布式服务支持
- 📊 实时状态监控和结果查询
快速开始
安装
pip install task_scheduling
基本使用
import time
from task_scheduling.variable import *
from task_scheduling.utils import interruptible_sleep
def linear_task(input_info):
for i in range(10):
interruptible_sleep(1)
print(f"Linear task: {input_info} - {i}")
if __name__ == "__main__":
from task_scheduling.task_creation import task_creation
from task_scheduling.manager import task_scheduler
task_id1 = task_creation(
None, None, FUNCTION_TYPE_IO, True, "linear_task",
linear_task, priority_low, "Hello Linear"
)
while True:
try:
time.sleep(0.1)
except KeyboardInterrupt:
task_scheduler.shutdown_scheduler()
文档
详细使用说明和完整功能请查看: https://fallingmeteorite.github.io/task_scheduling/
许可证
MIT License
贡献
欢迎提交 Issue 和 Pull Request!
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
task_scheduling-6.0.3.tar.gz
(64.6 kB
view details)
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 task_scheduling-6.0.3.tar.gz.
File metadata
- Download URL: task_scheduling-6.0.3.tar.gz
- Upload date:
- Size: 64.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
87327e2c9614a42981758a323d6747109bc3a8ff8ae8302c94799957e11ea718
|
|
| MD5 |
e81da20f6094d00c1550ae6875b0ad66
|
|
| BLAKE2b-256 |
43501f52da5a09eca55c4103cbdce5e01fe5062bbb162066762742364328f71c
|
File details
Details for the file task_scheduling-6.0.3-py3-none-any.whl.
File metadata
- Download URL: task_scheduling-6.0.3-py3-none-any.whl
- Upload date:
- Size: 101.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c109a2098f7855c12be0fad7dcada705c0393408b20c113184fced66016547f6
|
|
| MD5 |
7df85682785e33dfe12d74c92b3efac1
|
|
| BLAKE2b-256 |
28d90a6e1cb97488f72e02cd519692e1d2ff76b425f3cd729d4e358c7915bf5a
|