-
Notifications
You must be signed in to change notification settings - Fork 1
/
simulation.detail.html
602 lines (586 loc) · 23.5 KB
/
simulation.detail.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
<!DOCTYPE html>
<html lang="en">
<!-- Document head -->
<head>
<meta content="text/html;charset=utf-8" http-equiv="Content-Type">
<meta content="utf-8" http-equiv="encoding">
<link rel="shortcut icon" href="1.3.0.3/img/site-favicon-ipsl.png" type="image/x-icon" />
<title>IPSL - HERMES</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- CSS -->
<link href="1.3.0.3/css/app.css" rel="stylesheet" media="screen">
<link href="1.3.0.3/css/simulation.detail.css" rel="stylesheet" media="screen">
<link href="1.3.0.3/css/simulation.shared.css" rel="stylesheet" media="screen">
<link href="ext/bootstrap-3.3.7/css/bootstrap.min.css" rel="stylesheet" media="screen">
</head>
<!-- Document body -->
<body>
<!-- Template: header -->
<script type="underscore/template" id="template-caption">
<header id="caption" class="module-header bg-primary">
<h2><%- simulation.accountingProject.toUpperCase() %> ->
<%- simulation.space.toUpperCase() %> ->
<%- simulation.name %> [<%- simulation.tryID %>]
<span class='pull-right'>
<span class="simulation-messages glyphicon glyphicon-envelope <%= hasMessages ? '' : 'hidden' %>"
title="View Simulation Messages"></span>
<span class="inter-monitoring glyphicon glyphicon-random <%= simulation.isIM ? '' : 'hidden' %>"
title="Open Monitoring"></span>
</span>
</h2>
</header>
</script>
<!-- Template: notification info -->
<script type="underscore/template" id="template-notification">
<div id="notification"
class="monitoring-state-<%= eventTypeDescription ? simulation.executionState : 'running' %>"
style="padding: 12px 17px; margin-bottom: 2px; .border-radius( 5px );">
<strong>
<% if (eventTypeDescription) { %>
<%= eventTimestamp.slice(0, 19) %> ::
<%= eventTypeDescription %> ::
<%= simulation.name %> is
<%= simulation.ext.executionState %>
<% } else { %>
Awaiting simulation events ...
<% } %>
</strong>
</div>
</script>
<!-- Template: tabs -->
<script type="underscore/template" id="template-tabs">
<ul class="nav nav-tabs " role="tablist">
<% // TAB NAV: overview %>
<li role="presentation" class="active">
<a href="#tab-overview"
aria-controls="profile"
role="tab"
title="Overview"
data-toggle="tab">
<strong class="text-uppercase">
Overview
</strong>
</a>
</li>
<% // TAB NAV: config-card %>
<% if (MOD.state.configCard) { %>
<li role="presentation" style="border-left: 1px solid lightgrey;">
<a href="#tab-config-card"
aria-controls="profile"
role="tab"
title="Config Card"
data-toggle="tab">
<strong class="text-uppercase">
Config Card
</strong>
</a>
</li>
<% } %>
<% // TAB NAV: compute jobs %>
<% // TAB NAV: post-processing jobs %>
<% _.each(MOD.jobTypes, function (jobType, jobTypeIndex) { %>
<% var jobList = MOD.getJobs(jobType); %>
<% if (jobList.all.length) { %>
<li role="presentation" style="border-left: 1px solid lightgrey;">
<a href="#tab-jobs-<%= jobType %>"
aria-controls="profile"
role="tab"
title="<%= MOD.jobTypeDescriptions[jobType] %> Jobs"
data-toggle="tab">
<strong class="text-uppercase">
<%= MOD.jobTypeDescriptions[jobType] %> Jobs
</strong>
<span class="badge"
style="background-color: #D9EDF7; color: #333;">
<span id="tab-job-count-<%= jobType %>-running">
<%- jobList.running.length %>
</span>
</span>
<span class="badge"
style="background-color: #DFF0D8; color: #333;">
<span id="tab-job-count-<%= jobType %>-complete">
<%- jobList.complete.length %>
</span>
</span>
<span class="badge"
style="background-color: #F2DEDE; color: #333;">
<span id="tab-job-count-<%= jobType %>-late">
<%- jobList.late.length %>
</span>
</span>
<span class="badge"
style="background-color: pink; color: #333;">
<span id="tab-job-count-<%= jobType %>-error">
<%- jobList.error.length %>
</span>
</span>
</a>
</li>
<% } %>
<% }); %>
</ul>
<div class="tab-content">
<% // TAB CONTENT: overview %>
<div role="tabpanel" class="tab-pane active" id="tab-overview">
<%= APP.utils.renderTemplate("template-tab-overview", MOD.state) %>
</div>
<% // TAB CONTENT: config-card %>
<% if (MOD.state.configCard) { %>
<div role="tabpanel" class="tab-pane" id="tab-config-card">
<textarea id="simulation-config-card" class='form-control' rows='45' cols='40'>
<%- configCard %>
</textarea>
</div>
<% } %>
<% // TAB CONTENT: compute jobs %>
<% // TAB CONTENT: post-processing jobs %>
<% _.each(MOD.jobTypes, function (jobType) { %>
<% var jobList, jobTypeCaption; %>
<% jobList = MOD.getJobs(jobType); %>
<% if (jobList.all.length) { %>
<div role="tabpanel" class="tab-pane <%- jobType %>" id="tab-jobs-<%= jobType %>">
<%= APP.utils.renderTemplate("template-job-collection", {
APP: APP,
hidePPInfo: jobType === 'c' ,
jobList: jobList,
jobType: jobType,
jobTypeCaption: MOD.jobTypeDescriptions[jobType],
MOD: MOD
}) %>
</div>
<% } %>
<% }); %>
</script>
<!-- Template: overview -->
<script type="underscore/template" id="template-tab-overview">
<table id="simulation-overview" class="table table-striped table-hover">
<tbody>
<tr>
<td class="col-md-2">
<strong data-toggle="tooltip" title="Accounting Project">
Acc. Project
</strong>
</td>
<td class="col-md-4">
<%- simulation.ext.accountingProject %>
</td>
<td class="col-md-2">
<strong data-toggle="tooltip" title="Start date of simulation output">
Output Start Date
</strong>
</td>
<td>
<%= APP.utils.renderDate(simulation.outputStartDate) %>
</td>
</tr>
<tr>
<td class="col-md-2">
<strong data-toggle="tooltip" title="Simulation name">
Name
</strong>
</td>
<td class="col-md-4">
<%- simulation.name %>
</td>
<td class="col-md-2">
<strong data-toggle="tooltip" title="End date of simulation output">
Output End Date
</strong>
</td>
<td class="col-md-4">
<%= APP.utils.renderDate(simulation.outputEndDate) %>
</td>
</tr>
<tr>
<td class="col-md-2">
<strong data-toggle="tooltip" title="Machine upon whcih simulation ran">
Machine
</strong>
</td>
<td>
<%- simulation.ext.computeNodeMachine %>
</td>
<td class="col-md-2">
<strong data-toggle="tooltip" title="Percentage computation completion">
Output Progress
</strong>
</td>
<td>
<% if (simulation.ext.executionProgress > 0) { %>
<%- numeral(simulation.ext.executionProgress).format('0 %') %>
<% } else { %>
--
<% } %>
</td>
</tr>
<tr>
<td class="col-md-2">
<strong data-toggle="tooltip" title="User login under which simulation ran">
Login
</strong>
</td>
<td class="col-md-4">
<%- simulation.ext.computeNodeLogin %>
</td>
<td class="col-md-2">
<strong data-toggle="tooltip" title="Date upon which computation started">
Compute Start Date
</strong>
</td>
<td>
<%= APP.utils.renderDateTime(simulation.executionStartDate) %>
</td>
</tr>
<tr>
<td class="col-md-2">
<strong data-toggle="tooltip" title="Experiment being conducted">
Experiment
</strong>
</td>
<td class="col-md-4">
<%- simulation.ext.experiment %>
</td>
<td class="col-md-2">
<strong data-toggle="tooltip" title="Date upon which computation ended">
Compute End Date
</strong>
</td>
<td class="">
<%= APP.utils.renderDateTime(simulation.executionEndDate) %>
</td>
</tr>
<tr>
<td class="col-md-2">
<strong data-toggle="tooltip" title="Model being ran">
Model
</strong>
</td>
<td>
<%- simulation.ext.model %>
</td>
<td class="col-md-2">
<strong data-toggle="tooltip" title="Status of compute run">
Compute Status
</strong>
</td>
<td class='text-uppercase'>
<%- simulation.ext.executionState %>
</td>
</tr>
<tr>
<td class="col-md-2">
<strong data-toggle="tooltip" title="Output storage space">
Space
</strong>
</td>
<td class="col-md-4">
<%- simulation.ext.space %>
</td>
<td class="col-md-2">
<strong data-toggle="tooltip" title="Links to previous simulation tries">
Try<% if (simulation.tryID > 1) { %> [Previous Tries]<% } %>
</strong>
</td>
<td>
<%- simulation.tryID %>
<% if (simulation.tryID > 1) { %>
[<% _.each(MOD.state.previousTries, function(tryInfo) { %>
<a href="<%- APP.utils.getBaseURL() %>?uid=<%= tryInfo.uid %>" target="_blank"><%- tryInfo.tryID %></a><% }) %> ]
<% } %>
</td>
</tr>
<tr>
<td class="col-md-2">
<strong data-toggle="tooltip"
title="Submit directory and job localisation">
Submission Path
</strong>
</td>
<td colspan="3">
<%- simulation.submissionPath ||
simulation.jobs.compute.all.length ?
simulation.jobs.compute.all[0].submissionPath : "--" %>
</td>
</tr>
<tr>
<td class="col-md-2">
<strong data-toggle="tooltip"
title="R_SAVE variable in libIGCM. Output tree located on ARCHIVE">
Archive Path
</strong>
</td>
<td colspan="3">
<%- simulation.archivePath || "--" %>
</td>
</tr>
<tr>
<td class="col-md-2">
<strong data-toggle="tooltip"
title="R_BUFR variable in libIGCM.Output tree located on STORAGE (files waiting treatment, or file location when SpaceName=TEST)">
Storage Path
</strong>
</td>
<td colspan="3">
<%- simulation.storagePath || "--" %>
</td>
</tr>
<tr>
<td class="col-md-2">
<strong data-toggle="tooltip"
title="R_FIGR variable in libIGCM : Output tree located on STORAGE hosting figures (monitoring and atlas, and/or small files)">
Storage Path (Small)
</strong>
</td>
<td colspan="3">
<%- simulation.storageSmallPath || "--" %>
</td>
</tr>
</tbody>
</table>
</script>
<!-- Template: job list -->
<script type="underscore/template" id="template-job-collection">
<table id="job-collection-<%= jobType %>" class="table table-hover table-bordered table-condensed job-history-table">
<thead>
<%= APP.utils.renderTemplate("template-job-collection-header", {
jobList: jobList,
jobType: jobType,
jobTypeCaption: jobTypeCaption,
hidePPInfo: hidePPInfo,
MOD: MOD
}) %>
</thead>
<tbody>
<% _.each(jobList.paging.current.data, function(job) { %>
<%= APP.utils.renderTemplate("template-job-detail", {
APP: APP,
MOD: MOD,
job: job,
jobTypeCaption: jobTypeCaption,
jobType: jobType,
hidePPInfo: hidePPInfo
}) %>
<% }); %>
</tbody>
<tfoot>
<%= APP.utils.renderTemplate("template-job-collection-footer", {
APP: APP,
jobList: jobList,
jobType: jobType,
jobTypeCaption: jobTypeCaption,
MOD: MOD
}) %>
</tfoot>
</table>
</script>
<!-- Template: job collection header -->
<script type="underscore/template" id="template-job-collection-header">
<tr class="bg-primary">
<th colspan="7">
<span class="pull-left" style="padding: 5px 0px 5px 0px">
<span style="padding: 5px;">
<strong>Total <%= jobTypeCaption %> Jobs = <%= jobList.all.length %>.</strong>
</span>
</span>
<span id="pagination-<%= jobType %>" class="pull-right form-inline">
<button type='button' class="btn btn-sm btn-default pagination-first">
<strong class="text-muted"><<</strong>
</button>
<button type='button' class="btn btn-sm btn-default pagination-previous">
<strong class="text-muted"> < </strong>
</button>
<input type="text"
class="pagination-info form-control input-sm"
placeholder="Page <%= jobList.paging.current ? jobList.paging.current.id : '0' %> of <%= jobList.paging.count %>" />
<button type='button' class="btn btn-sm btn-default pagination-next">
<strong class="text-muted"> > </strong>
</button>
<button type='button' class="btn btn-sm btn-default pagination-last">
<strong class="text-muted">>></strong>
</button>
<select class="pagination-page-size form-control input-sm">
<% _.each(MOD.state.pageSizeOptions, function(pageSize) { %>
<option value="<%= pageSize %>" <%= pageSize == MOD.state.pageSize ? "selected" : "" %>>
<%= pageSize %> / page
</option>
<% }); %>
</select>
</span>
</th>
</tr>
<tr class="hermes-table-header">
<th title='Job post processing information' class='sort-target sort-target-postProcessingInfo <%= hidePPInfo ? 'hidden' : '' %>'>
<small class='sort-target-postProcessingInfo'>Info.</small>
<span class='pull-right sort-target-postProcessingInfo glyphicon' />
</th>
<th title='Job start date' class='sort-target sort-target-executionStartDate text-center'>
<small class='sort-target-executionStartDate'>Start Date</small>
<span class='pull-right sort-target-executionStartDate glyphicon' />
</th>
<th title='Job end date' class='sort-target sort-target-executionEndDate text-center'>
<small class='sort-target-executionEndDate'>End Date</small>
<span class='pull-right sort-target-executionEndDate glyphicon' />
</th>
<th title='Job duration' class='sort-target sort-target-duration text-center'>
<small class='sort-target-duration'>Duration</small>
<span class='pull-right sort-target-duration glyphicon' />
</th>
<th title='Job warning delay' class='sort-target sort-target-warningDelay text-center'>
<small class='sort-target-warningDelay'>Lateness Delay</small>
<span class='pull-right sort-target-warningDelay glyphicon' />
</th>
<th title='Job warning limit' class='sort-target sort-target-warningLimit text-center'>
<small class='sort-target-warningLimit'>Lateness Deadline</small>
<span class='pull-right sort-target-warningLimit glyphicon' />
</th>
<th title='Job lateness' class='sort-target sort-target-lateness text-center'>
<small class='sort-target-lateness'>Lateness</small>
<span class='pull-right sort-target-lateness glyphicon' />
</th>
</tr>
</script>
<!-- Template: job collection footer -->
<script type="underscore/template" id="template-job-collection-footer">
<tr>
<td colspan="7">
<span>
<small>
<strong>
<%= jobTypeCaption %> Jobs = <%= jobList.all.length %>:
</strong>
</small>
</span>
<span>
<span class='badge'
style='background-color: #D9EDF7; color: #333;'>
<small><strong>
<%- jobList.running.length %> RUNNING
</strong></small>
</span>
<span class='badge'
style='background-color: #DFF0D8; color: #333;'>
<small><strong>
<%- jobList.complete.length %> COMPLETE
</strong></small>
</span>
<span class='badge'
style='background-color: #F2DEDE; color: #333;'>
<small><strong>
<%- jobList.late.length %> LATE
</strong></small>
</span>
<span class='badge'
style='background-color: pink; color: #333;'>
<small><strong>
<%- jobList.error.length %> ERROR
</strong></small>
</small>
</span>
<span class='pull-right'>
<small><strong><a href='http://prodiguer-docs.readthedocs.org/en/latest/' target='blank'><%- APP.title %></a> <%- MOD.title %> v<%- APP.version %> © <%- MOD.state.year %> <a href='<%- APP.institute.homePage %>' target='_blank'>IPSL</a></strong></small>
</span>
</td>
</tr>
</script>
<!-- Template: job detail -->
<script type="underscore/template" id="template-job-detail">
<tr id="<%= job.jobUID %>" class="<%= MOD.getStateCSS(job.executionState) %>">
<td class='postProcessingInfo <%= hidePPInfo ? 'hidden' : '' %>'>
<small>
<%= job.postProcessingInfo %>
</small>
</td>
<td class='executionStartDate text-center'>
<small>
<%= APP.utils.renderDateTime(job.executionStartDate) %>
</small>
</td>
<td class='executionEndDate text-center'>
<small>
<%= APP.utils.renderDateTime(job.executionEndDate) %>
</small>
</td>
<td class='duration text-center'>
<small>
<%= APP.utils.renderDuration(job.duration) %>
</small>
</td>
<td class='warningDelay text-center'>
<small>
<%= APP.utils.renderDuration(job.warningDelay) %>
</small>
</td>
<td class='warningLimit text-center'>
<small>
<%= APP.utils.renderDateTime(job.warningLimit) %>
</small>
</td>
<td class='lateness text-center'>
<small>
<%= APP.utils.renderDuration(job.lateness) %>
</small>
</td>
</tr>
</script>
<!-- Template: web-socket close dialog -->
<script type="underscore/template" id="ws-close-dialog-template">
<div id="ws-close-dialog" class="modal fade" role="dialog" aria-labelledby="ws-close-dialog-label" aria-hidden="true" tabindex=-1>
<div class='modal-dialog'>
<div class='modal-content'>
<div class='modal-header'>
<h4 class='modal-title' id='ws-close-dialog-label'><%= APP.title %> <%= MOD.title %> v<%= APP.version %></h4>
</div>
<div class='modal-body'>
The HERMES web socket server connection has been interrupted.
</div>
<div class='modal-footer'>
<button type='button' class='btn btn-primary' id='ws-close-dialog-refresh-page-button'>Refresh page</button>
</div>
</div>
</div>
</div>
</script>
<!-- JS: 3rd party libraries -->
<script src="ext/jquery-3.2.1.min.js"></script>
<script src="ext/underscore.1.8.3.min.js"></script>
<script src="ext/backbone.1.3.3.min.js"></script>
<script src="ext/backbone-options-patch.js"></script>
<script src="ext/bootstrap-3.3.7/js/bootstrap.min.js"></script>
<script src="ext/moment-2.18.1.min.js"></script>
<script src="ext/numeral-2.0.6.js"></script>
<script src="ext/js.cookie-2.1.4.js"></script>
<script src="ext/jsExtensions.js"></script>
<!-- JS: Application shell -->
<script src="1.3.0.3/js/app/main.js"></script>
<script src="1.3.0.3/js/app/constants.js"></script>
<script src="1.3.0.3/js/app/cookies.js"></script>
<script src="1.3.0.3/js/app/init.js"></script>
<script src="1.3.0.3/js/app/options.js"></script>
<script src="1.3.0.3/js/app/state.js"></script>
<script src="1.3.0.3/js/app/templates.js"></script>
<script src="1.3.0.3/js/app/utils.js"></script>
<script src="1.3.0.3/js/app/view.content.js"></script>
<script src="1.3.0.3/js/app/view.header.js"></script>
<script src="1.3.0.3/js/app/view.footer.js"></script>
<script src="1.3.0.3/js/app/view.progress.js"></script>
<script src="1.3.0.3/js/app/view.js"></script>
<!-- JS: Module = monitoring (one) -->
<script src="1.3.0.3/js/simulation/shared/main.js"></script>
<script src="1.3.0.3/js/simulation/shared/utils.cv.js"></script>
<script src="1.3.0.3/js/simulation/shared/utils.im.js"></script>
<script src="1.3.0.3/js/simulation/shared/utils.ws.js"></script>
<script src="1.3.0.3/js/simulation/detail/init.js"></script>
<script src="1.3.0.3/js/simulation/detail/cookies.js"></script>
<script src="1.3.0.3/js/simulation/detail/state.js"></script>
<script src="1.3.0.3/js/simulation/detail/state.utils.js"></script>
<script src="1.3.0.3/js/simulation/detail/data.extender.job.js"></script>
<script src="1.3.0.3/js/simulation/detail/data.extender.simulation.js"></script>
<script src="1.3.0.3/js/simulation/detail/data.mapper.js"></script>
<script src="1.3.0.3/js/simulation/detail/data.parser.job.js"></script>
<script src="1.3.0.3/js/simulation/detail/data.parser.simulation.js"></script>
<script src="1.3.0.3/js/simulation/detail/events.fetch.js"></script>
<script src="1.3.0.3/js/simulation/detail/events.ws.js"></script>
<script src="1.3.0.3/js/simulation/detail/view.js"></script>
<script src="1.3.0.3/js/simulation/detail/view.renderer.js"></script>
</body>
</html>