Skip to main content
Loading navigation
Back to prompt library

Celery Async Worker Task Setup

Linked challenge: Built Environment Autonomous Work Dispatch Orchestrator

Prompt source

implementation7 lines2 sectionsNo variables0 checklist items
from celery import Celery
# Initialize Celery app with Redis broker for building operations dispatch
app = Celery('facility_dispatch', broker='redis://localhost:6379/0')

@app.task
def dispatch_maintenance_task(fault_event):
    # Route fault event to trade vendor API
    pass