Temp: disable GPU queue for testing IPFS HLS streaming
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -227,7 +227,11 @@ async def create_stream_run(
|
||||
logger.warning(f"Failed to store recipe in cache: {e}")
|
||||
# Continue anyway - run will still work, just won't appear in /recipes
|
||||
|
||||
# Submit Celery task to GPU queue for hardware-accelerated rendering
|
||||
# Submit Celery task - uses GPU queue if NVIDIA available, otherwise default
|
||||
# Note: GPU worker needs image rebuild for IPFS HLS support, using default for now
|
||||
import os
|
||||
use_gpu_queue = os.environ.get("USE_GPU_QUEUE", "false").lower() == "true"
|
||||
task_queue = 'gpu' if use_gpu_queue else None # None = default queue
|
||||
task = run_stream.apply_async(
|
||||
kwargs=dict(
|
||||
run_id=run_id,
|
||||
@@ -239,7 +243,7 @@ async def create_stream_run(
|
||||
sources_sexp=request.sources_sexp,
|
||||
audio_sexp=request.audio_sexp,
|
||||
),
|
||||
queue='gpu',
|
||||
queue=task_queue,
|
||||
)
|
||||
|
||||
# Store in database for durability
|
||||
|
||||
Reference in New Issue
Block a user