Skip to content

django-ray Documentation

Welcome to the django-ray documentation. django-ray is a Ray-based backend for Django Tasks that enables distributed task execution with database-backed reliability.

What is django-ray?

django-ray is a library that provides:

  • RayTaskBackend - A Django Tasks backend
  • RayTaskExecution model - Task execution tracking in your database
  • TaskWorkerLease model - Worker coordination for distributed deployments
  • django_ray_worker command - Management command to process tasks
  • Django Admin integration - Monitor and manage tasks

Note: This repository also contains a testproject/ directory with example code demonstrating django-ray features. The testproject (including its REST API) is not part of the django-ray library - it's provided for learning and testing purposes only.

The bundled testproject includes a landing page that links to the sample API, admin, Ray dashboard, project resources, task stats, and a smoke-task trigger:

django-ray testproject landing page

User Guide

Deployment

Reference

Development