
Security News
MCP Community Begins Work on Official MCP Metaregistry
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
Simple task manager and job queue for distributed rendering. Built on celery and redis.
A simple way to distribute rendering tasks across multiple machines.
Distributask is a package that automatically queues, executes, and uploads the result of any task you want using Vast.ai, a decentralized network of GPUs. It works by first creating a Celery queue of the tasks, which contain the code that you want to be ran on a GPU. The tasks are then passed to the Vast.ai GPU workers using Redis as a message broker. Once a worker has completed a task, the result is uploaded to Hugging Face.
pip install distributask
Clone the repository and navigate to the project directory:
git clone https://github.com/DeepAI-Research/Distributask.git
cd Distributask
Install the required packages:
pip install -r requirements.txt
Or install Distributask as a package:
pip install distributask
Create a .env
file in the root directory of your project or set environment variables to create your desired setup:
REDIS_HOST="name of your redis server"
REDIS_PORT="port of your redis server
REDIS_USER="username to login to redis server"
REDIS_PASSWORD="password to login to redis server"
VAST_API_KEY="your Vast.ai API key"
HF_TOKEN="your Hugging Face token"
HF_REPO_ID="name of your Hugging Face repository"
BROKER_POOL_LIMIT="your broker pool limit setting"
To run an example task and see Distributask in action, you can execute the example script provided in the project:
# Run the example task locally using either a Docker container or a Celery worker:
python -m distributask.example.local
# Run the example task on Vast.ai ("kitchen sink" example):
python -m distributask.example.distributed
This script configures the environment, registers a sample function, creates a queue of tasks, and monitors its execution on some workers.
--max_price
is the max price (in $/hour) a node can be be rented for.--max_nodes
is the max number of vast.ai nodes that can be rented.--docker_image
is the name of the docker image to load to the vast.ai node.--module_name
is the name of the Celery worker.--number_of_tasks
is the number of example tasks that will be added to the queue and done by the workers.For more info checkout our in-depth documentation!
Contributions are welcome! For any changes you would like to see, please open an issue to discuss what you would like to see changed or to change yourself.
This project is licensed under the MIT License - see the LICENSE
file for details.
@misc{Distributask,
author = {DeepAIResearch},
title = {Distributask: a simple way to distribute rendering tasks across mulitiple machines},
year = {2024},
publisher = {GitHub},
howpublished = {\url{https://github.com/DeepAI-Research/Distributask}}
}
FAQs
Simple task manager and job queue for distributed rendering. Built on celery and redis.
We found that distributask demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
Research
Security News
Malicious npm packages posing as developer tools target macOS Cursor IDE users, stealing credentials and modifying files to gain persistent backdoor access.