A scheduler of stuff (ASOS)
Project description
A scheduler of stuff (ASOS)
This is a task manager, sort of. Supports plugins for storage and for executors.
Configuration
Takes quite few parameters:
{
"uuid": "current_instance_name",
"storage_plugin": "mysql"
}
Storage plugins
Should implement two methods:
- Get all active tasks
- Add a result of task execution
class Storage():
def get_tasks(self):
return {task_id: task, ...}
def add(self, task_id, task, env, result, dump=None):
return True
Executor plugins
Does the actual work. The name of plugin should match a task_type
field.
class Executor():
def do(self, task, env):
return result, dump
Tasks
Task objects represent tasks that need to be done. Should contain all additional parameters, required by your plugins.
{
"task_type": executor_plugin_name,
"task_interval": 60,
"additional_param": "value"
}
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
asos-1.0.8-py3-none-any.whl
(16.1 kB
view details)
File details
Details for the file asos-1.0.8-py3-none-any.whl
.
File metadata
- Download URL: asos-1.0.8-py3-none-any.whl
- Upload date:
- Size: 16.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.6.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d4340731dc618ed297b849acd2521972f0a2f8e8b35b054a0fa8a833ee567023 |
|
MD5 | 740b0d1206870976dfd748ff33d0e39f |
|
BLAKE2b-256 | 4f77bba8c1ac5ab1e68c5aca58edc567743a35fd99c0f65e4ab0cf9b24865d8c |