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
- First you need to configure the minimum parameters in order to run tasks. See
- Second include
Bienvenido al Simple Task Manager. Para obtener más detalles sobre la configuración, el uso y las preguntas frecuentes, consulta los siguientes documentos:
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.
{...
,"task_handlers":{
"TestTaskHandler":{
"name": "Test task",
"module": "TestTaskHandler",
"class": "TestTaskHandler",
"path": "path_to/task_handlers" //Folder
}
}
DDBB configuration
You need a DDBB with 2 tables:
- tmgr_tasks: Info with the task
- tmgr_tasks_dep: Info with task dependencies needed by task to be exceuted. See table creation in config\ddbb_script.sql
Test in local
Install using pip in your project using pip install "path_to_dist/dist/Simple_Task_Manager-0.1.0-py3-none-any.whl"
The wheel can be diferent after creating building.
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.7.tar.gz
.
File metadata
- Download URL: simple_task_manager-1.5.7.tar.gz
- Upload date:
- Size: 25.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a7159f745eea852f7cb7965b08f1b8fed6c2152849f38eb27c697feef034b3d3 |
|
MD5 | 29aa9a9a375372a47f04759cbbc8baf6 |
|
BLAKE2b-256 | b081b3ee994126875343c45c6f6db1c7576e42bb6263c958b7e27bc5dbe72807 |
File details
Details for the file simple_task_manager-1.5.7-py3-none-any.whl
.
File metadata
- Download URL: simple_task_manager-1.5.7-py3-none-any.whl
- Upload date:
- Size: 30.0 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 | e3ffa6dafc6aaff3ec68d0e9deaca30bcae6e7019339ddded3a53f206f5de462 |
|
MD5 | b1d9038fe384563b9f5ae8302d48c086 |
|
BLAKE2b-256 | 40012d10bcd0c387197157455111b348ba9278832db639cc5c562050921bc4f7 |