PracHub
QuestionsPremiumLearningGuidesInterview PrepNEWCoaches
|Home/System Design/OpenAI

Design a CI/CD system with stuck-job handling

Last updated: May 2, 2026

Quick Overview

This question evaluates a candidate's competence in designing fault-tolerant distributed systems, focusing on state management, failure detection, safe terminal transitions, and correctness of job lifecycle handling in a multi-tenant CI/CD environment.

  • hard
  • OpenAI
  • System Design
  • Software Engineer

Design a CI/CD system with stuck-job handling

Company: OpenAI

Role: Software Engineer

Category: System Design

Difficulty: hard

Interview Round: Onsite

## Scenario Design a CI/CD platform similar to GitHub Actions/Jenkins that: - Triggers pipelines on events (e.g., push/PR/merge). - Runs pipelines as a DAG of steps (build/test/deploy). - Executes steps on a fleet of workers. - Exposes status to users (queued/running/succeeded/failed/canceled). ## Required deep dive A known issue: sometimes jobs get stuck in `RUNNING` forever (e.g., worker crashes, network partition). Explain how you would: - Detect stuck `RUNNING` jobs. - Transition them safely to a terminal state. - Avoid incorrectly failing slow-but-legitimate jobs. - Make the system robust to retries and duplicates. You may assume a multi-tenant environment and that correctness of job state is important.

Quick Answer: This question evaluates a candidate's competence in designing fault-tolerant distributed systems, focusing on state management, failure detection, safe terminal transitions, and correctness of job lifecycle handling in a multi-tenant CI/CD environment.

Related Interview Questions

  • Design a Distributed Crossword Solver - OpenAI (hard)
  • Design a Distributed Rate Limiter - OpenAI
  • Design a Distributed Crossword Solver - OpenAI (medium)
  • Design Mobile Model Usage Quotas - OpenAI (medium)
  • Design a Slack-Like Messaging System - OpenAI (medium)
OpenAI logo
OpenAI
Dec 15, 2025, 12:00 AM
Software Engineer
Onsite
System Design
44
0
Loading...

Scenario

Design a CI/CD platform similar to GitHub Actions/Jenkins that:

  • Triggers pipelines on events (e.g., push/PR/merge).
  • Runs pipelines as a DAG of steps (build/test/deploy).
  • Executes steps on a fleet of workers.
  • Exposes status to users (queued/running/succeeded/failed/canceled).

Required deep dive

A known issue: sometimes jobs get stuck in RUNNING forever (e.g., worker crashes, network partition). Explain how you would:

  • Detect stuck RUNNING jobs.
  • Transition them safely to a terminal state.
  • Avoid incorrectly failing slow-but-legitimate jobs.
  • Make the system robust to retries and duplicates.

You may assume a multi-tenant environment and that correctness of job state is important.

Solution

Show

Comments (0)

Sign in to leave a comment

Loading comments...

Browse More Questions

More System Design•More OpenAI•More Software Engineer•OpenAI Software Engineer•OpenAI System Design•Software Engineer System Design
PracHub

Master your tech interviews with 7,500+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • For Universities
  • Student Access

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.