MediumAbout 12 minScheduling & backfill
Flag tasks that breached their SLA
Given a list of task runs {"task": str, "start": ISO ts, "end": ISO ts} and an sla_minutes budget, return the names of tasks whose duration (end − start) exceeded the SLA. A run exactly at the SLA is not a miss.
Return the offending task names sorted ascending.
What the tests check
4 on Run · 5 on Submit01under SLA is not flagged
02over SLA is flagged
03exactly at SLA is not a miss
04a run longer than a day is a miss
Submit runs these and one more check you don’t see, so code written for the visible tests alone can still miss.
Runtime
Python 3.13 in your browser – the standard library plus pandas and numpy; no pip installs.