Skip to content

Commit

Permalink
Add tryNumber to grid task instance tooltip (apache#37911)
Browse files Browse the repository at this point in the history
  • Loading branch information
bbovenzi authored and utkarsharma2 committed Apr 22, 2024
1 parent 5ba7269 commit 2b7dcfc
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion airflow/www/static/js/dag/InstanceTooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,16 @@ interface Props {

const InstanceTooltip = ({
group,
instance: { taskId, startDate, endDate, state, runId, mappedStates, note },
instance: {
taskId,
startDate,
endDate,
state,
runId,
mappedStates,
note,
tryNumber,
},
}: Props) => {
if (!group) return null;
const isGroup = !!group.children;
Expand Down Expand Up @@ -88,6 +97,7 @@ const InstanceTooltip = ({
</Text>
</>
)}
{tryNumber && tryNumber > 1 && <Text>Try Number: {tryNumber}</Text>}
{group.triggerRule && <Text>Trigger Rule: {group.triggerRule}</Text>}
{note && <Text>Contains a note</Text>}
</Box>
Expand Down

0 comments on commit 2b7dcfc

Please sign in to comment.