Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

simple_task_manager-1.5.5.tar.gz (28.1 kB view details)

Uploaded Source

Built Distribution

simple_task_manager-1.5.5-py3-none-any.whl (33.4 kB view details)

Uploaded Python 3

File details

Details for the file simple_task_manager-1.5.5.tar.gz.

File metadata

  • Download URL: simple_task_manager-1.5.5.tar.gz
  • Upload date:
  • Size: 28.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.8

File hashes

Hashes for simple_task_manager-1.5.5.tar.gz
Algorithm Hash digest
SHA256 902794401caa5250345c6c05d97c44cc4a72ae4eb34adb8e479dd2951b56c798
MD5 551cfd58ca403208bc6d47d2e2a5764a
BLAKE2b-256 ae9fb11f2fd5998e42bd22c3f3b575298c5e5c2f7b7d71da6a63d2f586a57a12

See more details on using hashes here.

File details

Details for the file simple_task_manager-1.5.5-py3-none-any.whl.

File metadata

File hashes

Hashes for simple_task_manager-1.5.5-py3-none-any.whl
Algorithm Hash digest
SHA256 a02d6e3d9f45cd9bc001a8e1ad72831e09ecbf107422249a8a568cc51af7f85f
MD5 38561029e95897f07f62dddfb9a04275
BLAKE2b-256 8bc5aafceea52573a3a894a5b9003799b131054b9ed5bf8f20e0a28a2e5245e9

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page