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.2.tar.gz
(5.5 kB
view details)
File details
Details for the file CellTasker-0.2.2.tar.gz.
File metadata
- Download URL: CellTasker-0.2.2.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0ad3a1d363f4b7a09e69a55601356a04fbb009e46bba64d03c25262b67abd819
|
|
| MD5 |
62ac0ec43dc407434461afbe1e09d126
|
|
| BLAKE2b-256 |
87be18d67bdbe6b2f6921df78ad1fc03175e09a859f2a758c4384cd2815cddaf
|