-
Notifications
You must be signed in to change notification settings - Fork 3
/
package.json
303 lines (303 loc) · 9.68 KB
/
package.json
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
{
"name": "slurm-dashboard",
"displayName": "Slurm Dashboard",
"publisher": "danielnichols",
"description": "A dashboard for the Slurm workload manager.",
"version": "0.0.14",
"author": {
"name": "Daniel Nichols",
"url": "https://cs.umd.edu/~dnicho"
},
"repository": {
"type": "git",
"url": "https://github.com/Dando18/slurm-dashboard/"
},
"icon": "images/icon.png",
"license": "Apache-2.0",
"engines": {
"vscode": "^1.81.1"
},
"categories": [
"Visualization",
"Other"
],
"keywords": [
"Slurm",
"HPC",
"Workload Manager",
"Jobs",
"Scheduler"
],
"extensionKind": [
"workspace"
],
"activationEvents": [],
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"command": "job-dashboard.refresh",
"title": "Refresh Job List",
"icon": "$(sync)"
},
{
"command": "job-dashboard.cancel-all",
"title": "Cancel All Jobs",
"icon": "$(x)"
},
{
"command": "job-dashboard.cancel",
"title": "Cancel Job",
"icon": "$(close)"
},
{
"command": "job-dashboard.cancel-and-resubmit",
"title": "Cancel and Resubmit Job",
"icon": "$(debug-restart)"
},
{
"command": "job-dashboard.show-output",
"title": "Show Job Output",
"icon": "$(output)"
},
{
"command": "job-dashboard.show-error",
"title": "Show Job Error",
"icon": "$(bracket-error)"
},
{
"command": "job-dashboard.show-source",
"title": "Show Job Source",
"icon": "$(file-code)"
},
{
"command": "submit-dashboard.refresh",
"title": "Refresh Job Script List",
"icon": "$(sync)"
},
{
"command": "submit-dashboard.show-source",
"title": "Show Job Source",
"icon": "$(file-code)"
},
{
"command": "submit-dashboard.submit",
"title": "Submit Job",
"icon": "$(run)"
},
{
"command": "submit-dashboard.submit-all",
"title": "Submit All Jobs",
"icon": "$(run-all)"
}
],
"viewsContainers": {
"activitybar": [
{
"id": "slurm-dashboard",
"title": "Slurm Dashboard",
"icon": "$(group-by-ref-type)"
}
]
},
"views": {
"slurm-dashboard": [
{
"id": "job-dashboard",
"name": "Jobs"
},
{
"id": "submit-dashboard",
"name": "Job Scripts"
}
]
},
"menus": {
"view/title": [
{
"command": "job-dashboard.refresh",
"when": "view == job-dashboard",
"group": "navigation"
},
{
"command": "job-dashboard.cancel-all",
"when": "view == job-dashboard",
"group": "navigation"
},
{
"command": "submit-dashboard.refresh",
"when": "view == submit-dashboard",
"group": "navigation"
},
{
"command": "submit-dashboard.submit-all",
"when": "view == submit-dashboard",
"group": "navigation"
}
],
"view/item/context": [
{
"command": "job-dashboard.cancel",
"when": "view == job-dashboard && viewItem == jobItem",
"group": "inline@2"
},
{
"command": "job-dashboard.cancel-and-resubmit",
"when": "view == job-dashboard && viewItem == jobItem",
"group": "inline@1"
},
{
"command": "job-dashboard.show-output",
"when": "view == job-dashboard && viewItem == jobItem",
"group": "inline@3"
},
{
"command": "job-dashboard.show-error",
"when": "view == job-dashboard && viewItem == jobItem",
"group": "inline@4"
},
{
"command": "job-dashboard.show-source",
"when": "view == job-dashboard && viewItem == jobItem",
"group": "inline@5"
},
{
"command": "submit-dashboard.submit",
"when": "view == submit-dashboard",
"group": "inline"
}
]
},
"configuration": {
"title": "Slurm Dashboard",
"properties": {
"slurm-dashboard.job-dashboard.showJobInfo": {
"type": "boolean",
"default": false,
"description": "Show all job metadata in the job list."
},
"slurm-dashboard.job-dashboard.promptBeforeCancel": {
"type": "boolean",
"default": true,
"description": "Prompt before cancelling a job."
},
"slurm-dashboard.job-dashboard.promptBeforeCancelAll": {
"type": "boolean",
"default": true,
"description": "Prompt before cancelling all jobs."
},
"slurm-dashboard.job-dashboard.refreshInterval": {
"type": [
"number",
"null"
],
"default": 300,
"description": "How many seconds between refreshing job queue. Set to null to disable automatic refresh."
},
"slurm-dashboard.job-dashboard.useNativeIcons": {
"type": "boolean",
"default": false,
"description": "Use native icons for job status instead of custom extension ones."
},
"slurm-dashboard.job-dashboard.extrapolationInterval": {
"type": [
"number",
"null"
],
"default": null,
"description": "Extrapolate the job run times in the UI without querying the workload manager. Allows you to set a high job-dashboard.refreshInterval, but still see more realistic job run times. This has the danger of coming out of sync with the real times or not portraying job completion/failure, so it is turned off by default. A value of null disables extrapolation."
},
"slurm-dashboard.job-dashboard.persistJobs": {
"type": "boolean",
"default": false,
"description": "Persist the duration of jobs in the UI. This is useful for jobs that are no longer in the queue, but you want to see how long they ran for."
},
"slurm-dashboard.job-dashboard.sortBy": {
"type": [
"string",
"null"
],
"default": null,
"description": "Sort the job list by this column. Set to null to leave the order returned by the workload manager. Choices: [\"id\", \"name\", \"time left\", \"status\"] Default: null"
},
"slurm-dashboard.slurm-backend.squeueUserArg": {
"type": "string",
"default": "me",
"description": "The argument to pass to squeue to filter jobs by user. By default the `--me` flag is passed to squeue, but Slurm versions older than 20.02 don't support this flag. 'user' will fall back to the `--user` flag, which is supported by older versions of Slurm. Choices: [\"me\", \"user\"] Default: me"
},
"slurm-dashboard.submit-dashboard.jobScriptExtensions": {
"type": "array",
"default": [
".slurm",
".sbatch",
".job"
],
"description": "[DEPRECATED] Use jobScriptPatterns setting instead. File extensions used to identify job scripts."
},
"slurm-dashboard.submit-dashboard.jobScriptPatterns": {
"type": "array",
"default": [
"**/*.slurm",
"**/*.sbatch",
"**/*.job"
],
"description": "Glob patterns to identify job scripts. Default: [\"**/*.slurm\", \"**/*.sbatch\", \"**/*.job\"]"
},
"slurm-dashboard.submit-dashboard.promptBeforeSubmitAll": {
"type": "boolean",
"default": true,
"description": "Prompt before submitting all job scripts."
},
"slurm-dashboard.submit-dashboard.sortBy": {
"type": [
"string",
"null"
],
"default": "last modified",
"description": "Sort the job script list by this column. Set to null to leave the order the glob pattern discovered the files. Choices: [\"filename\", \"rel path\", \"last modified\", \"newest\", \"oldest\"] Default: last modified"
},
"slurm-dashboard.setJobWorkingDirectoryToScriptDirectory": {
"type": "boolean",
"default": true,
"description": "Set the working directory of a job to the directory containing the job script."
},
"slurm-dashboard.backend": {
"type": "string",
"default": "slurm",
"description": "The backend to use for submitting jobs. Available choices: slurm, debug."
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile && npm run lint",
"lint": "eslint src",
"format": "prettier --write \"src/**/*.{ts,json}\" \"./**/*.{md,json,yaml,yml}\"",
"check-format": "prettier --check \"src/**/*.{ts,json}\" \"./**/*.{md,json,yaml,yml}\"",
"test": "node ./out/test/runTest.js",
"coverage": "c8 --clean npm run test -- stable",
"package": "vsce package",
"deploy": "vsce publish"
},
"devDependencies": {
"@types/vscode": "^1.81.1",
"@types/minimatch": "^5.1.2",
"@types/mocha": "^10.0.10",
"@types/node": "22.10.1",
"@typescript-eslint/eslint-plugin": "^8.16.0",
"@typescript-eslint/parser": "^8.18.0",
"@stylistic/eslint-plugin-ts": "^2.12.0",
"c8": "^10.1.2",
"prettier": "^3.4.1",
"eslint": "^9.15.0",
"glob": "^11.0.0",
"minimatch": "^5.1.2",
"mocha": "^11.0.1",
"typescript": "^5.7.2",
"@vscode/test-electron": "^2.4.1",
"@vscode/vsce": "^3.2.1"
}
}