Auralis Worker Node - Distributed AI Compute Platform
Project description
🌌 Auralis Worker Node
The worker node polls for pending jobs, executes them in Docker containers, and streams logs back to the dashboard.
Prerequisites
- Python 3.10+
- Docker installed and running
- AWS credentials configured
- Supabase credentials configured
Setup
-
Install dependencies:
pip install -r requirements.txt
-
Configure environment variables: Create a
.envfile in the worker directory:# Supabase SUPABASE_URL=your-supabase-url SUPABASE_SERVICE_ROLE_KEY=your-service-role-key # AWS S3 AWS_ACCESS_KEY_ID=your-aws-key AWS_SECRET_ACCESS_KEY=your-aws-secret AWS_REGION=us-east-1 S3_BUCKET_NAME=auralis-job # Worker Config WORKER_ID=my-local-worker COMPUTE_TYPE=cpu POLL_INTERVAL=10 WORK_DIR=/tmp/auralis-worker
Usage
Auto-Poll Mode (Default)
Continuously polls for pending jobs and executes them:
python main.py
Run Specific Job
Execute a specific job by ID:
python main.py --job-id abc123-def456
Options
-j, --job-id Run a specific job by ID
-w, --worker-id Unique worker identifier (default: worker-<pid>)
How It Works
- Poll: Worker checks Supabase for
PENDINGjobs - Claim: Worker atomically claims a job (
PENDING→CLAIMED) - Download: Downloads project zip from S3
- Build: Builds Docker image from Dockerfile
- Run: Executes container with output volume mounted
- Stream: Logs are streamed to Supabase in real-time
- Upload: Output files are uploaded to S3
- Complete: Job marked as
COMPLETEDorFAILED
Architecture
worker/
├── main.py # Entry point, polling loop
├── job_runner.py # Docker build & run logic
├── supabase_client.py # Job queries & log streaming
├── s3_client.py # File upload/download
└── requirements.txt # Dependencies
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file auralis_worker-0.2.2.tar.gz.
File metadata
- Download URL: auralis_worker-0.2.2.tar.gz
- Upload date:
- Size: 8.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a3bcc48da82053384646ee7be51ec5c08c88a83d22f6d748a3916fc5a28c0242
|
|
| MD5 |
2edf85b31e5365e6edf0196ff48cf965
|
|
| BLAKE2b-256 |
58bfc4689eedef5b11d117d8483fcdf749da534de5fc35408a40c240d907037f
|
File details
Details for the file auralis_worker-0.2.2-py3-none-any.whl.
File metadata
- Download URL: auralis_worker-0.2.2-py3-none-any.whl
- Upload date:
- Size: 8.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d8d88954bd879d3bdcca13f11dacf60646e4f7162303d67947f333e29dd531e3
|
|
| MD5 |
aa7b245b32ed63569c6acd4dbf6d52b2
|
|
| BLAKE2b-256 |
24aab87a09fb82aaec34be85628d7df5fe59dd59e5274a5cc87dc2214495df93
|