Skip to content

src/dazzle_back/runtime/process_manager.py

Generated: 2026-03-30T04:38:47.840467+00:00

Commit: 615f1354a103

Language: python

Scope: dazzle_back

Purpose

ProcessManager - Integrates process execution with DNR runtime.

This module connects ProcessSpec definitions from the AppSpec to the process adapter (EventBusProcessAdapter, CeleryProcessAdapter, or TemporalAdapter) and handles entity event triggers.

Key Exports

  • ProcessManager
  • initialize
  • shutdown
  • on_entity_created
  • on_entity_updated
  • on_entity_deleted
  • start_process
  • get_run
  • list_runs
  • cancel_process
  • signal_process
  • get_task
  • list_tasks
  • complete_task
  • reassign_task
  • get_process_spec
  • get_schedule_spec
  • list_process_names
  • list_schedule_names
  • register_process

Dependencies

Imports

  • logging
  • typing.Any
  • dazzle.core.ir.appspec.AppSpec
  • dazzle.core.ir.process.ProcessSpec
  • dazzle.core.ir.process.ProcessTriggerKind
  • dazzle.core.ir.process.ScheduleSpec
  • dazzle.core.process.adapter.ProcessAdapter
  • dazzle.core.process.adapter.ProcessRun
  • dazzle.core.process.adapter.ProcessStatus
  • dazzle.core.process.adapter.ProcessTask
  • dazzle.core.process.adapter.TaskStatus

Event Interactions

None detected.

Invariants and Assumptions

No invariants documented.

Tests

  • tests/integration/test_runtime_e2e.py
  • tests/integration/test_runtime_pipeline.py
  • tests/unit/test_runtime_test_routes.py
  • tests/unit/test_runtime_services.py
  • tests/unit/test_runtime_mcp_tools.py

Notes

This page was automatically generated by tools/gen_reference_docs.py.