Skip to main content

Simple task manager to handle execution of tasks in AWS docker or any system. It use a handler that can be loaded dynamically.

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 Actually 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" 

Sphinx documentation

  • There is a minimal documentation generated from source. See Documentation

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.35.tar.gz (37.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

simple_task_manager-1.5.35-py3-none-any.whl (44.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: simple_task_manager-1.5.35.tar.gz
  • Upload date:
  • Size: 37.4 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.35.tar.gz
Algorithm Hash digest
SHA256 4499a1e828756cf36b44bd9a7c91afa470e11d4de9c1c536b8bfdc14d244f4b6
MD5 a4371278f279cf846a98e0aed34f0a86
BLAKE2b-256 b7882445ab5dab482874514fd6529b4b5dc6787f4d0f4f494eb94c1b42954f67

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_task_manager-1.5.35-py3-none-any.whl
Algorithm Hash digest
SHA256 81a6ff369c59e705706698e305759672322c7a84ee59f609cfe0b6f74afc9a65
MD5 8843e4ce64c37164ec993c4816baae4a
BLAKE2b-256 b07084e57c8d344c0497f38ec3741f712f1d224a482706401b6626f955336875

See more details on using hashes here.

Supported by

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