|
| 1 | +<!DOCTYPE html> |
| 2 | +<html> |
| 3 | +<body style="margin:0;padding:0;background-color:#171c2f;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif"> |
| 4 | + <table width="100%" cellpadding="0" cellspacing="0" style="padding:64px 24px 72px 24px"> |
| 5 | + <tr> |
| 6 | + <td align="center"> |
| 7 | + <table width="600" cellpadding="0" cellspacing="0"> |
| 8 | + <!-- Logo --> |
| 9 | + <tr> |
| 10 | + <td align="center" style="padding-bottom:48px"> |
| 11 | + <img src="https://cwiki.apache.org/confluence/download/attachments/145723561/airflow_transparent.png" width="56" height="56" alt="Airflow" style="display:block;width:56px;height:56px"> |
| 12 | + </td> |
| 13 | + </tr> |
| 14 | + <!-- Status --> |
| 15 | + <tr> |
| 16 | + <td style="padding-bottom:0"> |
| 17 | + <table cellpadding="0" cellspacing="0"> |
| 18 | + <tr> |
| 19 | + <td style="font-size:13px;color:#ef4444;line-height:1;vertical-align:middle">●</td> |
| 20 | + <td style="padding-left:8px"> |
| 21 | + <span style="font-size:13px;font-weight:600;text-transform:uppercase;letter-spacing:0.08em;color:#ef4444">Task Failed</span> |
| 22 | + </td> |
| 23 | + </tr> |
| 24 | + </table> |
| 25 | + </td> |
| 26 | + </tr> |
| 27 | + <!-- DAG name --> |
| 28 | + <tr> |
| 29 | + <td style="padding-bottom:6px;padding-top:8px"> |
| 30 | + <span style="font-size:28px;font-weight:700;color:#e8ecf4;letter-spacing:-0.02em">{{ti.dag_id}}</span> |
| 31 | + </td> |
| 32 | + </tr> |
| 33 | + <!-- Task name --> |
| 34 | + <tr> |
| 35 | + <td style="padding-bottom:24px"> |
| 36 | + <span style="font-size:18px;color:#8896b3">{{ti.task_id}}</span> |
| 37 | + </td> |
| 38 | + </tr> |
| 39 | + <!-- Details card --> |
| 40 | + <tr> |
| 41 | + <td style="padding-bottom:24px"> |
| 42 | + <table width="100%" cellpadding="0" cellspacing="0" style="background-color:#1f2539;border-radius:8px;border:1px solid #2d3450"> |
| 43 | + <tr> |
| 44 | + <td style="padding:24px"> |
| 45 | + <table width="100%" cellpadding="0" cellspacing="0" style="font-size:15px;line-height:1.5"> |
| 46 | + <tr> |
| 47 | + <td style="padding:8px 0;color:#8896b3;width:100px;vertical-align:top">Run</td> |
| 48 | + <td style="padding:8px 0;color:#e8ecf4">{{ti.run_id}}</td> |
| 49 | + </tr> |
| 50 | + <tr> |
| 51 | + <td colspan="2" style="border-bottom:1px solid #2d3450;font-size:0;line-height:0"> </td> |
| 52 | + </tr> |
| 53 | + <tr> |
| 54 | + <td style="padding:8px 0;color:#8896b3;vertical-align:top">Attempt</td> |
| 55 | + <td style="padding:8px 0;color:#e8ecf4">{{try_number}} of {{max_tries + 1}}</td> |
| 56 | + </tr> |
| 57 | + <tr> |
| 58 | + <td colspan="2" style="border-bottom:1px solid #2d3450;font-size:0;line-height:0"> </td> |
| 59 | + </tr> |
| 60 | + <tr> |
| 61 | + <td style="padding:8px 0;color:#8896b3;vertical-align:top">Host</td> |
| 62 | + <td style="padding:8px 0;color:#e8ecf4;font-family:'SF Mono',SFMono-Regular,Consolas,'Liberation Mono',Menlo,monospace;font-size:14px">{{ti.hostname}}</td> |
| 63 | + </tr> |
| 64 | + {% if dag and dag.tags %} |
| 65 | + <tr> |
| 66 | + <td colspan="2" style="border-bottom:1px solid #2d3450;font-size:0;line-height:0"> </td> |
| 67 | + </tr> |
| 68 | + <tr> |
| 69 | + <td style="padding:8px 0;color:#8896b3;vertical-align:top">Tags</td> |
| 70 | + <td style="padding:8px 0"> |
| 71 | + {% for tag in dag.tags|sort %}<span style="display:inline-block;background-color:#2d3450;color:#a3b3d1;padding:3px 12px;border-radius:20px;font-size:13px;font-weight:500;margin:2px 4px 2px 0">{{tag}}</span>{% endfor %} |
| 72 | + </td> |
| 73 | + </tr> |
| 74 | + {% endif %} |
| 75 | + </table> |
| 76 | + </td> |
| 77 | + </tr> |
| 78 | + </table> |
| 79 | + </td> |
| 80 | + </tr> |
| 81 | + <!-- Exception card --> |
| 82 | + <tr> |
| 83 | + <td style="padding-bottom:32px"> |
| 84 | + <table width="100%" cellpadding="0" cellspacing="0" style="background-color:#2a1215;border-radius:8px;border:1px solid #4a2025"> |
| 85 | + <tr> |
| 86 | + <td style="padding:20px 24px;font-family:'SF Mono',SFMono-Regular,Consolas,'Liberation Mono',Menlo,monospace;font-size:14px;line-height:1.7;color:#fca5a5;word-break:break-word"> |
| 87 | + {{exception_html}} |
| 88 | + </td> |
| 89 | + </tr> |
| 90 | + </table> |
| 91 | + </td> |
| 92 | + </tr> |
| 93 | + <!-- Actions --> |
| 94 | + <tr> |
| 95 | + <td> |
| 96 | + <table cellpadding="0" cellspacing="0"> |
| 97 | + <tr> |
| 98 | + {% if ti.log_url %} |
| 99 | + <td style="padding-right:12px"> |
| 100 | + <a href="{{ti.log_url}}" style="display:inline-block;padding:8px 28px;background-color:#3b82f6;color:#ffffff;text-decoration:none;border-radius:4px;font-size:15px;font-weight:600">View Log</a> |
| 101 | + </td> |
| 102 | + {% endif %} |
| 103 | + {% if ti.mark_success_url %} |
| 104 | + <td> |
| 105 | + <a href="{{ti.mark_success_url}}" style="display:inline-block;padding:8px 28px;background-color:transparent;color:#a3b3d1;text-decoration:none;border-radius:4px;font-size:15px;font-weight:500;border:1px solid #2d3450">Mark Success</a> |
| 106 | + </td> |
| 107 | + {% endif %} |
| 108 | + </tr> |
| 109 | + </table> |
| 110 | + </td> |
| 111 | + </tr> |
| 112 | + </table> |
| 113 | + </td> |
| 114 | + </tr> |
| 115 | + </table> |
| 116 | +</body> |
| 117 | +</html> |
0 commit comments