+
+
+ Lakeflow Jobs
+
+
+ Trigger, monitor, and manage Databricks Lakeflow Jobs. Set{" "}
+
+ DATABRICKS_JOB_{NAME}
+ {" "}
+ env vars to configure jobs.
+
+
+
+ {/* Job key selector */}
+
+
+ setJobKey(e.target.value)}
+ className="rounded-md border px-3 py-1.5 text-sm bg-background w-48"
+ />
+
+
+
+
+
+ {error && (
+
+ {error}
+
+ )}
+
+ {/* Status card */}
+ {status && (
+
+ Last Run Status
+
+ State:
+
+ {status.status ?? "No runs"}
+
+
+ {status.run && (
+
+ Run #{status.run.run_id} — started{" "}
+ {formatTime(status.run.start_time)}
+
+ )}
+
+ )}
+
+ {/* Runs table */}
+ {runs.length > 0 && (
+
+ Recent Runs
+
+
+
+
+ | Run ID |
+ Lifecycle |
+ Result |
+ Started |
+ Actions |
+
+
+
+ {runs.map((run) => (
+
+ | {run.run_id} |
+
+ {run.state?.life_cycle_state ?? "—"}
+ |
+
+ {run.state?.result_state ?? "—"}
+ |
+
+ {formatTime(run.start_time)}
+ |
+
+ {run.state?.life_cycle_state === "RUNNING" && (
+
+ )}
+ |
+
+ ))}
+
+
+
+
+ )}
+
+ {/* Stream log */}
+ {streamLog.length > 0 && (
+
+ Run Stream
+
+ {streamLog.map((entry) => (
+
{entry.text}
+ ))}
+
+
+ )}
+
+