Simple task manager to handle execution of tasks in AWS or docker.
Project description
Simple Task Manager (STMGR)
This is a simple task manager to start processes on AWS/Docker or other platforms. The app includes classes to manage tasks on AWS, but you can implement additional handlers dynamically.
You only need to create a class to handle the task that you want to start and register it in a database (DDBB). Below, I'll compare STMGR with Celery (since it's widely used) to explain the key differences and help you make an informed choice. Another good choice is Dramatiq. For a simple comparison between STMGR and Celery check
Installation
This project can be installed using pip:
pip install simple-task-manager
Or it can be installed directly from git: pip install git+https://github.com/Fran-4c4/staskmgr
Usage and requirements
- First you need to configure the minimum parameters in order to run tasks. See Configuration
- Second you need a database to store configuration and task management. See table creation in folder config\ddbb_script.sql or Configuration scripts Now only postgresql is suported.
More info in github GitHub.
Adding handlers
In order to manage other types you need to create a class and an entry in DDBB or in your appconfig.json in the section task_handlers. When the task is retrieved from DDBB it will look the handler. Below is an example of the Test task handler.
"task_handlers": {
"TEST_MGR": {
"config": {
"task_handler": {
"name": "TestTaskHandler",
"path": "task_handlers",
"class": "TestTaskHandler",
"module": "test_task_handler",
"launchType": "INTERNAL",
"task_next_status":"FINISHED"
}
}
}
}
Test in local
Install using pip in your project using the next command and changing x.x.x version.
pip install "path_to_dist/dist/Simple_Task_Manager-x.x.x-py3-none-any.whl"
License
licensed under Apache License 2.0
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
File details
Details for the file simple_task_manager-1.5.20.tar.gz
.
File metadata
- Download URL: simple_task_manager-1.5.20.tar.gz
- Upload date:
- Size: 30.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8af84bc42d6520445e941163c88b7ea150871cbb8f0b1870d7a95c8816c5cad |
|
MD5 | d29a3e45e45cd5dcbac33f43a89985ba |
|
BLAKE2b-256 | 122f8eadcab746710bd7f8ca824dad44997f68d2634970fe998f48043b1c8715 |
File details
Details for the file simple_task_manager-1.5.20-py3-none-any.whl
.
File metadata
- Download URL: simple_task_manager-1.5.20-py3-none-any.whl
- Upload date:
- Size: 35.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 79510cf6123c5174491fdf7cbc415a55bf338f5356f6ccde29b732e11b704855 |
|
MD5 | 653a1c24194b780affd37d387320c765 |
|
BLAKE2b-256 | b656c7a203c30afa3706b89d16614ad7666eeacfc54a1457c95493117c47c032 |