CellTasker希望提供一个高效的任务调度和管理系统。
Project description
CellTasker
CellTasker是一个高效的任务调度和管理系统,它允许用户定义并行运行的任务,每个任务被视为一个'cell'。这些'cell'可以根据预定的时间表自动启动和管理,每个'cell'的状态都会被持续监控并在需要时进行更新。CellTasker提供了一种灵活且可靠的方式来处理并行任务,使任务管理和调度变得更加简单和高效。
安装
使用以下命令安装CellTasker:
pip install CellTasker
使用
首先,定义你的任务。每个任务都是一个'cell',可以使用task函数来定义:
from CellTasker.cell import task
@task(name='my_task', timerange='00:00:00 - 23:59:59', interval=60)
def my_task(change_status: callable):
# 你的任务代码
pass
然后,使用Controller来管理你的任务:
from CellTasker.controller import Controller
import logging
aclog = logging.getLogger('CellTasker')
aclog.setLevel(logging.INFO)
controller = Controller(5)
controller.run()
贡献
欢迎提交pull request来改进CellTasker。
许可
MIT
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
CellTasker-0.2.4.tar.gz
(5.9 kB
view details)
File details
Details for the file CellTasker-0.2.4.tar.gz.
File metadata
- Download URL: CellTasker-0.2.4.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1fcd698eca524655ae8f33302e42022aeffd711198095bdf74ef1c5681ab554e
|
|
| MD5 |
9ee6d37a864468c3addcda12ccd299e9
|
|
| BLAKE2b-256 |
0ec53307e3e9421f2e53a7f50602e67ac41cfb07334fb1ea8364668082c28617
|