~/talk

Implementing a Workflow Engine in Python

Talkat PyData NYC 2022 · 2022-11-09..11-11· [python, devops-and-delivery]
links:none on file
slides:none on file

Engineered a Python workflow engine that actually runs production automations for hospitals it serializes inputs with Pydantic, exposes task enqueueing via FastAPI, and uses a client-token idempotency scheme so replaying a script never duplicates side effects. Tasks go onto a Postgres-backed queue, workers persist results, and long latency human-in-the-loop steps can pause without blocking. Claims: handles complex branching workflows, avoids unsafe restarts, and already runs against Epic/Cerner integrations at large health systems.

AI-written summary · about

  1. 0:00Introduction
  2. 1:05Healthcare automation challenges
  3. 2:30Automating manual tasks
  4. 5:01Workflow automation
  5. 7:28Why Casa needed engine
  6. 8:51Human-in-the-loop principles
  7. 10:37Key requirements
  8. 12:43Introduction to idempotent APIs
  9. 15:16Idempotent operations
  10. 16:42AWS idempotency approach
  11. 19:55Replayable workflows
  12. 21:40Casa's engine architecture
  13. 23:27Async task execution
  14. 25:37Worker pool prioritization
  15. 26:00Replaying workflows
  16. 28:10Task input/output serialization
  17. 29:34Client token generation
  18. 33:06Workflow execution
  19. 36:01Q&A
  20. 36:44Comparison with engines
  21. 38:09Maintaining async order
  22. 39:36Open source plans
  23. 39:58Integration with EMRs like Epic and Cerner
  24. 41:44FastAPI in toolkit
  25. 43:09Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.