Skip to main content
Orchestrate complex workflows by chaining automations using callbacks instead of polling.

Architecture


Minimal Example


Dependencies


Running


How It Works

ComponentPurpose
callbacks dictStores pending tasks with asyncio Events
run_workflowStarts tasks, waits for callbacks
/receive_callbackReceives Optexity notifications, signals completion

Flow

  1. Start task: POST to Optexity inference API
  2. Register callback: Create asyncio Event for task_id
  3. Wait: Event.wait() suspends until callback received
  4. Callback received: Event.set() wakes workflow
  5. Process: Use result, continue to next task

Benefits

BenefitDescription
No pollingTasks complete asynchronously
EfficientLightweight asyncio coordination
ScalableExtend for parallel tasks
ReliableTimeout handling included
Your callback URL must be publicly accessible from Optexity’s servers.