-
Notifications
You must be signed in to change notification settings - Fork 1
/
check-exist-job.html
96 lines (86 loc) · 3.35 KB
/
check-exist-job.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
<!--/* NODE-RED-CONTRIB-SNAP4CITY-DEVELOPER
Copyright (C) 2018 DISIT Lab http://www.disit.org - University of Florence
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */-->
<script type="text/javascript">
RED.nodes.registerType('check-exist-job', {
category: 'S4CManagement',
color: '#A6BBCF',
defaults: {
name: {
value: ""
},
hostname: {
value: "",
required: false
},
jobname: {
value: "",
required: false
},
jobgroup: {
value: "",
required: false
}
},
outputs: 1,
inputs: 1,
icon: "white-globe.png",
label: function () {
return this.name || "check-exist-job";
}
});
</script>
<script type="text/x-red" data-template-name="check-exist-job">
<div class="form-row">
<label for="node-input-name">Name</label>
<input type="text" autocomplete="off" id="node-input-name" placeholder="Name">
</div>
<div class="form-row">
<label for="node-input-hostname">Hostname</label>
<input type="text" autocomplete="off" id="node-input-hostname" placeholder="Hostname">
</div>
<div class="form-row">
<label for="node-input-jobname">Job Name</label>
<input type="text" autocomplete="off" id="node-input-jobname" placeholder="Job Name">
</div>
<div class="form-row">
<label for="node-input-jobgroup">Job Group</label>
<input type="text" autocomplete="off" id="node-input-jobgroup" placeholder="Job Group">
</div>
</script>
<script type="text/x-red" data-help-name="check-exist-job">
<p> check the existence of a job on the scheduler</p>
<h3>Inputs</h3>
A JSON with these parameters:
<dl class="message-properties">
<dt>hostname
<span class="property-type">string</span>
</dt>
<dd> the hostname where the DISCES is hosted</dd>
<dt>jobname
<span class="property-type">string</span>
</dt>
<dd> The job name </dd>
<dt>jobgroup
<span class="property-type">string</span>
</dt>
<dd> The job group</dd>
</dl>
<h3>Outputs</h3>
<dl class="message-properties">
<dd> A JSON file indicating if the requested job exists</dd>
</dl>
<h3>Details</h3>
<p>The node can receive a JSON with the parameters described in the Inputs section and with them generate the output JSON.
If the values are not present in the input JSON, these are read by those in the configuration. If they are not present
in either part, an error is generated for the necessary parameters.</p>
</script>