@@ -131,14 +131,14 @@ job.
131
131
- ** Time Limit** is the maximal running time of a task. If it is reached, the task will be terminated, and it will
132
132
transition into the ` Failed ` [ state] ( #task-state ) . This setting has no impact on scheduling.
133
133
134
- This can serve as a sanity check to make sure that some task will not run indefinitely. You can set it with the
135
- ` --time-limit ` option[ ^ 2 ] :
134
+ This can serve as a sanity check to make sure that some task will not run indefinitely. You can set it with the
135
+ ` --time-limit ` option[ ^ 2 ] :
136
136
137
137
``` bash
138
138
$ hq submit --time-limit=< duration> ...
139
139
```
140
140
141
- !!! note
141
+ !!! note
142
142
143
143
Time limit is counted separately for each task. If you set a time limit of ` 3 minutes` and create two tasks,
144
144
where each will run for two minutes, the time limit will not be hit.
@@ -149,16 +149,16 @@ job.
149
149
this
150
150
task.
151
151
152
- Time requests are only used during scheduling, where the server decides which worker should execute which task.
153
- Once a task is scheduled and starts executing on a worker, the time request value will not have any effect.
152
+ Time requests are only used during scheduling, where the server decides which worker should execute which task.
153
+ Once a task is scheduled and starts executing on a worker, the time request value will not have any effect.
154
154
155
- You can set the time request using the ` --time-request` option[^2]:
155
+ You can set the time request using the ` --time-request` option[^2]:
156
156
157
- ` ` ` bash
158
- $ hq submit --time-request=< duration> ...
159
- ` ` `
157
+ ` ` ` bash
158
+ $ hq submit --time-request=< duration> ...
159
+ ` ` `
160
160
161
- !!! note
161
+ !!! note
162
162
163
163
Workers with an unknown remaining lifetime will be able to execute any task, disregarding its time request.
164
164
@@ -313,7 +313,7 @@ There are three ways of waiting until a job completes:
313
313
$ hq submit --wait ...
314
314
```
315
315
316
- !!! tip
316
+ !!! tip
317
317
318
318
This method can be used for benchmarking the job duration.
319
319
@@ -327,14 +327,14 @@ There are three ways of waiting until a job completes:
327
327
- **Interactive wait** If you want to interactively observe the status of a job (which is useful especially if it
328
328
has [multiple tasks](arrays.md)), you can use the `hq job progress` command:
329
329
330
- === "Submit and observe"
331
- ```bash
332
- $ hq submit --progress ...
333
- ```
334
- === "Observe an existing job[^1]"
335
- ```bash
336
- $ hq job progress <selector>
337
- ```
330
+ === "Submit and observe"
331
+ ```bash
332
+ $ hq submit --progress ...
333
+ ```
334
+ === "Observe an existing job[^1]"
335
+ ```bash
336
+ $ hq job progress <selector>
337
+ ```
338
338
339
339
## Attaching standard input
340
340
@@ -390,11 +390,11 @@ $ hq submit --stdout="out.txt:rm-if-finished" /my-program
390
390
The file will not be deleted if the task fails or is cancelled.
391
391
392
392
!!! Note
393
- If you want to use the default `stdout`/`stderr` file path (and you don' t want to look it up), you can also specify
394
- just the cleanup mode without the file path:
395
- ` ` ` bash
396
- $ hq submit --stdout=" :rm-if-finished" /my-program
397
- ` ` `
393
+ If you want to use the default `stdout`/`stderr` file path (and you don' t want to look it up), you can also specify
394
+ just the cleanup mode without the file path:
395
+ ` ` ` bash
396
+ $ hq submit --stdout=" :rm-if-finished" /my-program
397
+ ` ` `
398
398
399
399
# # Useful job commands
400
400
@@ -403,15 +403,15 @@ Here is a list of useful job commands:
403
403
# ## Display job table
404
404
405
405
=== " List queued and running jobs"
406
- ` ` ` bash
407
- $ hq job list
408
- ` ` `
406
+ ` ` ` bash
407
+ $ hq job list
408
+ ` ` `
409
409
=== " List all jobs"
410
- ` ` ` bash
411
- $ hq job list --all
412
- ` ` `
410
+ ` ` ` bash
411
+ $ hq job list --all
412
+ ` ` `
413
413
=== " List jobs by status"
414
- You can display only jobs having the selected [states](# job-state) by using the `--filter` flag:
414
+ You can display only jobs having the selected [states](# job-state) by using the `--filter` flag:
415
415
416
416
` ` ` bash
417
417
$ hq job list --filter running,waiting
@@ -460,4 +460,4 @@ By default, this limit is `5` but it can be changed as follows:
460
460
$ hq submit --crash-limit=< NEWLIMIT> ...
461
461
` ` `
462
462
463
- If the limit is set to 0, then the limit is disabled.
463
+ If the limit is set to 0, then the limit is disabled.
0 commit comments