File indexing completed on 2026-04-10 08:38:59
0001 jedi_task_plain = """
0002 Subject: JEDI notification for TaskID:{jedi_task_id} ({n_succeeded}/{n_total} {msg_succeeded})
0003
0004 Summary of TaskID:{jedi_task_id}
0005
0006 Created : {creation_time} (UTC)
0007 Ended : {end_time} (UTC)
0008
0009 Final Status : {task_status}
0010
0011 Total Number of {input_str} : {n_total}
0012 Succeeded : {n_succeeded}
0013 Failed : {n_failed}
0014 {cancelled_str} : {n_cancelled}
0015
0016
0017 Error Dialog : {error_dialog}
0018
0019 {dataset_summary}
0020
0021 Parameters : {command}
0022
0023
0024 PandaMonURL : https://bigpanda.cern.ch/task/{jedi_task_id}/
0025
0026 Please use the smiley interface on this link to provide feedback on the task execution.
0027
0028 Estimated carbon footprint for the task
0029 Succeeded : {carbon_succeeded}
0030 Failed : {carbon_failed}
0031 Cancelled : {carbon_cancelled}
0032 _________________
0033 Total : {carbon_total}
0034 (More details on estimation: https://panda-wms.readthedocs.io/en/latest/advanced/carbon_footprint.html)
0035
0036
0037 Report Panda problems of any sort to
0038
0039 the eGroup for help request
0040 hn-atlas-dist-analysis-help@cern.ch
0041
0042 the Discourse forum for distributed computing help
0043 https://atlas-talk.web.cern.ch/c/distributed-computing-help
0044
0045 the JIRA portal for software bug
0046 https://its.cern.ch/jira/browse/ATLASPANDA
0047 """
0048
0049 html_head = """
0050 <!DOCTYPE html>
0051 <html>
0052 <head>
0053 <style>
0054 body {{
0055 font-family: Arial, sans-serif;
0056 }}
0057 table {{
0058 width: 100%;
0059 border-collapse: collapse;
0060 margin-top: 10px;
0061 }}
0062 th, td {{
0063 border: 1px solid #dddddd;
0064 text-align: left;
0065 padding: 8px;
0066 }}
0067 th {{
0068 background-color: #f2f2f2;
0069 }}
0070 .logo {{
0071 width: 100px; /* Adjust the size as needed */
0072 }}
0073 </style>
0074 <title> {title} </title>
0075 </head>
0076 """
0077
0078 jedi_task_html_body = """
0079 <body>
0080 <img class="logo" src="https://panda-wms.readthedocs.io/en/latest/_static/PanDA-rev-logo-small-200px.jpg" alt="PanDA Logo">
0081 <h2>Summary of TaskID: <a href="https://bigpanda.cern.ch/task/{jedi_task_id}">{jedi_task_id}</a> </h2>
0082 <p> 💬 Please use the smiley interface on this link to provide feedback on the task execution.</p>
0083 <table>
0084 <tr>
0085 <th>Detail</th>
0086 <th>Value</th>
0087 </tr>
0088 <tr>
0089 <td>Created</td>
0090 <td>{creation_time}</td>
0091 </tr>
0092 <tr>
0093 <td>Ended</td>
0094 <td>{end_time}</td>
0095 </tr>
0096 <tr>
0097 <td>Final Status</td>
0098 <td>{task_status}</td>
0099 </tr>
0100 </table>
0101
0102 <h3>Total Number of {input_str}</h3>
0103 <table>
0104 <tr>
0105 <th>Category</th>
0106 <th>Count</th>
0107 </tr>
0108 <tr>
0109 <td>Succeeded</td>
0110 <td>{n_succeeded}</td>
0111 </tr>
0112 <tr>
0113 <td>Failed</td>
0114 <td>{n_failed}</td>
0115 </tr>
0116 <tr>
0117 <td>{cancelled_str}</td>
0118 <td>{n_cancelled}</td>
0119 </tr>
0120 <tr>
0121 <td>Total</td>
0122 <td>{n_total}</td>
0123 </tr>
0124 </table>
0125
0126 <p><strong>Error Dialog:</strong> {error_dialog}</p>
0127
0128 <h3>Datasets</h3>
0129 <table>
0130 <tr>
0131 <td><strong>In</strong></td>
0132 <td>{datasets_in}</td>
0133 </tr>
0134 <tr>
0135 <td><strong>Out</strong></td>
0136 <td>{datasets_out}</td>
0137 </tr>
0138 <tr>
0139 <td><strong>Log</strong></td>
0140 <td>{datasets_log}</td>
0141 </tr>
0142 </table>
0143
0144 <h3>Parameters</h3>
0145 <table>
0146 <tr>
0147 <td><strong>Command</strong></td>
0148 <td>{command}</td>
0149 </tr>
0150 </table>
0151
0152 <h3>Estimated Carbon Footprint for the Task</h3>
0153 <table>
0154 <tr>
0155 <th>Category</th>
0156 <th>gCO2</th>
0157 </tr>
0158 <tr>
0159 <td>Succeeded</td>
0160 <td>{carbon_succeeded}</td>
0161 </tr>
0162 <tr>
0163 <td>Failed</td>
0164 <td>{carbon_failed}</td>
0165 </tr>
0166 <tr>
0167 <td>Cancelled</td>
0168 <td>{carbon_cancelled}</td>
0169 </tr>
0170 <tr>
0171 <td><strong>Total</strong></td>
0172 <td><strong>{carbon_total}</strong></td>
0173 </tr>
0174 </table>
0175 <p>More details on estimation: <a href="https://panda-wms.readthedocs.io/en/latest/advanced/carbon_footprint.html">https://panda-wms.readthedocs.io/en/latest/advanced/carbon_footprint.html</a></p>
0176
0177 <h3>Panda Problem Reporting</h3>
0178 <ul>
0179 <li>The eGroup for help request: <a href="mailto:hn-atlas-dist-analysis-help@cern.ch">hn-atlas-dist-analysis-help@cern.ch</a></li>
0180 <li>The Discourse forum for distributed computing help: <a href="https://atlas-talk.web.cern.ch/c/distributed-computing-help">https://atlas-talk.web.cern.ch/c/distributed-computing-help</a></li>
0181 <li>The JIRA portal for software bug: <a href="https://its.cern.ch/jira/browse/ATLASPANDA">https://its.cern.ch/jira/browse/ATLASPANDA</a></li>
0182 </ul>
0183 </body>
0184 </html>
0185 """