Timeout Enforcement
Bloomberg 👶 Easy CI/CD
Beginner Mode

Start your terminal to use beginner mode.

Objective

A repository at /home/interview/repo has a deployment workflow that occasionally hangs due to network issues or unresponsive external services. Jobs need to be automatically terminated if they exceed a time limit.

Task

Complete the workflow at .github/workflows/deploy.yml that triggers on push events. The deploy job should check out the code and run ./scripts/long-running-task.sh with a step-level timeout of 2 minutes using timeout-minutes: 2 on the run step.

File Path

  • Workflow: /home/interview/repo/.github/workflows/deploy.yml
  • Script: /home/interview/repo/scripts/long-running-task.sh

Terminal requires a larger screen

Open this page on a desktop or tablet (≥ 768px) to launch the terminal and practice hands-on.

Linux Terminal Environment

Write and execute your solution in the terminal below.

Sign In

Track

Question Difficulty Company Access
Need more practice in this area? Explore more questions →