Skip to content

Commit

Permalink
Don't present an undefined execution date (#31196)
Browse files Browse the repository at this point in the history
If a task had entered a Failed state but had not yet started, the UI
would display the current time as the "Run:" time. This is confusing.
  • Loading branch information
evanmiller committed Jun 7, 2023
1 parent 471fdac commit e162074
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion airflow/www/static/js/task_instances.js
Expand Up @@ -99,7 +99,9 @@ export default function tiTooltip(ti, task, { includeTryNumber = false } = {}) {
if (ti.task_id !== undefined) {
tt += `Task_id: ${escapeHtml(ti.task_id)}<br>`;
}
tt += `Run: ${formatDateTime(ti.execution_date)}<br>`;
if (ti.execution_date !== undefined) {
tt += `Run: ${formatDateTime(ti.execution_date)}<br>`;
}
if (ti.run_id !== undefined) {
tt += `Run Id: <nobr>${escapeHtml(ti.run_id)}</nobr><br>`;
}
Expand Down

0 comments on commit e162074

Please sign in to comment.