Skip to content

A scenario for a platform engineer · Mid level and up

Task six of eight failed

Beep · On call
Thursday, 06:40

A nightly Databricks job has eight tasks. The first five ran for two hours and succeeded, then task six failed because a source file arrived late. The file is there now, and the reports are due at nine.

What do you do?

Tap the one you would do. The answer opens below.

Show the best call

Repair the run, so that only task six and the tasks that depend on it run.

The two hours of finished work are kept, and the rest is done in time, as part of the same run.

Why

Repair run reruns only the tasks that failed or were skipped, and the tasks that depend on them. Tasks that succeeded are not run again. You can change parameters or settings for the repair, and it is recorded with the original run. A repaired task starts again from the beginning, so its writes have to be safe to repeat.

Read it in the Databricks docs (opens in a new tab)

The other two

Works, at a price. Run the whole job again from the start.
It finishes, late, and you paid for the first five tasks twice.
A poor call. Open the notebooks of the last three tasks and run them by hand.
The data may land, but the job still shows a failed run, the run has no record of what you did, and a wrong parameter is yours to find.

Go deeper on brickster.ai

More scenarios

Had one like this at work? Send it to us: the best tickets come from real incidents.

Added on . Checked against the Databricks documentation on . brickster.ai is independent and is not affiliated with Databricks.