Coder Social home page Coder Social logo

dramax's Introduction

CI Python >=3.7 Code style: black

dramaX is a distributed workflow runner for Python.

It uses RabbitMQ as a message broker and Dramatiq as a task queue.

Getting Started

Prerequisites

You can set up a minimal development environment using docker compose:

docker compose up -d

Install

If you are feeling lucky and want to install the latest version from source, clone the repository and install the dependencies:

git clone [email protected]:KhaosResearch/dramaX.git
cd dramaX
python -m pip install -e .

Usage

Create a .env.local file similar to .env.example and fill in the values. A full list of configuration variables can be found in dramax/settings.py. Then, you can run the command line client tool:

dramax -h

Deploy server (optional)

Server can be deployed with uvicorn, a lightning-fast ASGI server, using the command-line client tool:

dramax server

Online documentation will be available at /api/docs.

Spawn workers

Workers execute tasks in the background. They can be spawned using the command-line client tool:

dramax worker --processes 1

For a full list of valid command line arguments that can be passed to dramax worker, checkout dramatiq -h

License

Copyright 2023 Khaos Research, all rights reserved.

dramax's People

Contributors

benhid avatar

Watchers

Antonio J. Nebro avatar  avatar

dramax's Issues

Revoke end-point not working.

When requesting the revoke of a running workflow via the POST /api/v2/workflow/revoke end-point the server responds with a 500 Internal Server Error message.

Steps to reproduce it:

  1. Run a workflow.
  2. POST the workflow ID to the /api/v2/workflow/revoke end-point.
  3. A 500 error message is returned.
image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.