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


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

Uploaded Source

Built Distribution

simple_task_manager-1.5.21-py3-none-any.whl (36.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: simple_task_manager-1.5.21.tar.gz
  • Upload date:
  • Size: 30.6 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.21.tar.gz
Algorithm Hash digest
SHA256 937c9861be7baeb29c11dea0a7626ca670665dcca28c6f934cf10811e752172a
MD5 5547b191ee6e7018311640a78e4831b5
BLAKE2b-256 0b87a5e0791f202af3d2f77606b7e9ce43b3ae6cc581f80f1f4bacc668a03620

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_task_manager-1.5.21-py3-none-any.whl
Algorithm Hash digest
SHA256 92c1ec5d4abbc25813b37e0e466aa64fda6ffd0c41fe9d7c17fdabe15f0ad779
MD5 402a5f47d5298e1d7cbddaab1b367472
BLAKE2b-256 3c8e6633b3a6b5bcef5a42397e5b3006a22631a125e90d3071a2ee7c839bdf1b

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