Anonymous · shared experience20 Jan 2026 · 10 views
PhonePe: DAG workflow engine with parallel tasks, retries and execution logs
Problem. Build a workflow execution engine in the spirit of Apache Airflow. A workflow is a directed acyclic graph, and each node is a task. The engine works out a valid run order from the dependencies, runs independent tasks concurrently, retries failed tasks, and writes detailed logs.
API to expose.
submitWorkflow(workflow)returns the overall status and a map from task id to statusgetTaskStatus(taskId)returns pending, running, success or failedcancelWorkflow(workflowId)is optional
Constraints.
- Use your language's concurrency primitives for the parallel execution
- When a task uses up all its retries, the tasks that depend on it are skipped or marked failed
- The logs must let someone trace the order and result of every task
Format. A 24 hour take-home, then a code review. The reviewer first went deep into one of the candidate's past projects, then read the code closely and pointed out small bugs.
Comments 0
No comments yet. Ask the author something, or add what happened in your own round.