@@ -119,11 +119,11 @@ This will define the machine type for a particular step, overriding the default
119
119
120
120
``` console
121
121
rule hello_world:
122
- output:
123
- "...",
124
- resources:
125
- googlebatch_machine_type="c3-standard-112"
126
- shell:
122
+ output:
123
+ "...",
124
+ resources:
125
+ googlebatch_machine_type="c3-standard-112"
126
+ shell:
127
127
"..."
128
128
```
129
129
@@ -136,11 +136,11 @@ This will define the image family for a particular step, overriding the default
136
136
137
137
``` console
138
138
rule hello_world:
139
- output:
140
- "...",
141
- resources:
142
- googlebatch_image_family="hpc-centos-7"
143
- shell:
139
+ output:
140
+ "...",
141
+ resources:
142
+ googlebatch_image_family="hpc-centos-7"
143
+ shell:
144
144
"..."
145
145
```
146
146
@@ -160,11 +160,11 @@ This will define the image project for a particular step, overriding the default
160
160
161
161
``` console
162
162
rule hello_world:
163
- output:
164
- "...",
165
- resources:
166
- googlebatch_image_project="cloud-hpc-image-public"
167
- shell:
163
+ output:
164
+ "...",
165
+ resources:
166
+ googlebatch_image_project="cloud-hpc-image-public"
167
+ shell:
168
168
"..."
169
169
```
170
170
@@ -175,11 +175,11 @@ This will define the bucket for a particular step, overriding the default from t
175
175
176
176
``` console
177
177
rule hello_world:
178
- output:
179
- "...",
180
- resources:
181
- googlebatch_bucket="my-snakemake-batch-bucket"
182
- shell:
178
+ output:
179
+ "...",
180
+ resources:
181
+ googlebatch_bucket="my-snakemake-batch-bucket"
182
+ shell:
183
183
"..."
184
184
```
185
185
@@ -189,11 +189,11 @@ This will define the mount path for a bucket for a particular step, overriding t
189
189
190
190
``` console
191
191
rule hello_world:
192
- output:
193
- "...",
194
- resources:
195
- googlebatch_mount_path="/mnt/workflow"
196
- shell:
192
+ output:
193
+ "...",
194
+ resources:
195
+ googlebatch_mount_path="/mnt/workflow"
196
+ shell:
197
197
"..."
198
198
```
199
199
@@ -204,11 +204,11 @@ This will define the work tasks for a particular step, overriding the default fr
204
204
205
205
``` console
206
206
rule hello_world:
207
- output:
208
- "...",
209
- resources:
210
- googlebatch_work_tasks=1
211
- shell:
207
+ output:
208
+ "...",
209
+ resources:
210
+ googlebatch_work_tasks=1
211
+ shell:
212
212
"..."
213
213
```
214
214
@@ -218,11 +218,11 @@ The URL of an existing network resource (e.g., `projects/{project}/global/networ
218
218
219
219
``` console
220
220
rule hello_world:
221
- output:
222
- "...",
223
- resources:
224
- googlebatch_network="projects/{project}/global/networks/{network}"
225
- shell:
221
+ output:
222
+ "...",
223
+ resources:
224
+ googlebatch_network="projects/{project}/global/networks/{network}"
225
+ shell:
226
226
"..."
227
227
```
228
228
@@ -232,11 +232,25 @@ The URL of an existing subnetwork resource (e.g., `projects/{project}/regions/{r
232
232
233
233
``` console
234
234
rule hello_world:
235
- output:
236
- "...",
237
- resources:
238
- googlebatch_subnetwork="projects/{project}/regions/{region}/subnetworks/{subnetwork}"
239
- shell:
235
+ output:
236
+ "...",
237
+ resources:
238
+ googlebatch_subnetwork="projects/{project}/regions/{region}/subnetworks/{subnetwork}"
239
+ shell:
240
+ "..."
241
+ ```
242
+
243
+ #### googlebatch_service_account
244
+
245
+ The email of custom compute service account to be used by Batch (e.g.,
` [email protected] ` )
246
+
247
+ ``` console
248
+ rule hello_world:
249
+ output:
250
+ "...",
251
+ resources:
252
+ googlebatch_service_account="[email protected] "
253
+ shell:
240
254
"..."
241
255
```
242
256
@@ -246,11 +260,11 @@ This will define the milliseconds per cpu-second for a particular step, overridi
246
260
247
261
``` console
248
262
rule hello_world:
249
- output:
250
- "...",
251
- resources:
252
- googlebatch_cpu_mulli=2000
253
- shell:
263
+ output:
264
+ "...",
265
+ resources:
266
+ googlebatch_cpu_mulli=2000
267
+ shell:
254
268
"..."
255
269
```
256
270
@@ -260,11 +274,11 @@ This will define the work tasks per node (Google batch calls these tasks) for a
260
274
261
275
``` console
262
276
rule hello_world:
263
- output:
264
- "...",
265
- resources:
266
- googlebatch_work_tasks_per_node=2
267
- shell:
277
+ output:
278
+ "...",
279
+ resources:
280
+ googlebatch_work_tasks_per_node=2
281
+ shell:
268
282
"..."
269
283
```
270
284
@@ -274,11 +288,11 @@ This will define the memory for a particular step as an integer in MiB, overridi
274
288
275
289
``` console
276
290
rule hello_world:
277
- output:
278
- "...",
279
- resources:
280
- googlebatch_memory=2000
281
- shell:
291
+ output:
292
+ "...",
293
+ resources:
294
+ googlebatch_memory=2000
295
+ shell:
282
296
"..."
283
297
```
284
298
@@ -289,11 +303,11 @@ This is the [boot disk type](https://cloud.google.com/compute/docs/disks#pdspecs
289
303
290
304
``` console
291
305
rule hello_world:
292
- output:
293
- "...",
294
- resources:
295
- googlebatch_boot_disk_type="pd-standard"
296
- shell:
306
+ output:
307
+ "...",
308
+ resources:
309
+ googlebatch_boot_disk_type="pd-standard"
310
+ shell:
297
311
"..."
298
312
```
299
313
@@ -304,11 +318,11 @@ This is the boot disk [image](https://github.com/googleapis/googleapis/blob/2fd7
304
318
305
319
``` console
306
320
rule hello_world:
307
- output:
308
- "...",
309
- resources:
310
- googlebatch_boot_disk_image="batch-centos"
311
- shell:
321
+ output:
322
+ "...",
323
+ resources:
324
+ googlebatch_boot_disk_image="batch-centos"
325
+ shell:
312
326
"..."
313
327
```
314
328
@@ -319,11 +333,11 @@ The [size of the boot disk](https://github.com/googleapis/googleapis/blob/2fd762
319
333
320
334
``` console
321
335
rule hello_world:
322
- output:
323
- "...",
324
- resources:
325
- googlebatch_boot_disk_gb=40
326
- shell:
336
+ output:
337
+ "...",
338
+ resources:
339
+ googlebatch_boot_disk_gb=40
340
+ shell:
327
341
"..."
328
342
```
329
343
@@ -333,11 +347,11 @@ This will define the retry times for a step overriding the default from the comm
333
347
334
348
``` console
335
349
rule hello_world:
336
- output:
337
- "...",
338
- resources:
339
- googlebatch_retry_count=2
340
- shell:
350
+ output:
351
+ "...",
352
+ resources:
353
+ googlebatch_retry_count=2
354
+ shell:
341
355
"..."
342
356
```
343
357
@@ -347,11 +361,11 @@ This will define the max run duration for a step overriding the default from the
347
361
348
362
``` console
349
363
rule hello_world:
350
- output:
351
- "...",
352
- resources:
353
- googlebatch_max_run_duration="3600s"
354
- shell:
364
+ output:
365
+ "...",
366
+ resources:
367
+ googlebatch_max_run_duration="3600s"
368
+ shell:
355
369
"..."
356
370
```
357
371
@@ -361,11 +375,11 @@ This will define the extra labels to add to the Google Batch job.
361
375
362
376
``` console
363
377
rule hello_world:
364
- output:
365
- "...",
366
- resources:
367
- googlebatch_labels="model=c3,stage=test"
368
- shell:
378
+ output:
379
+ "...",
380
+ resources:
381
+ googlebatch_labels="model=c3,stage=test"
382
+ shell:
369
383
"..."
370
384
```
371
385
@@ -376,11 +390,11 @@ A container to use only with `image_family` set to batch-cos* (see [here](https:
376
390
377
391
``` console
378
392
rule hello_world:
379
- output:
380
- "...",
381
- resources:
382
- googlebatch_container="ghcr.io/rse-ops/atacseq:app-latest"
383
- shell:
393
+ output:
394
+ "...",
395
+ resources:
396
+ googlebatch_container="ghcr.io/rse-ops/atacseq:app-latest"
397
+ shell:
384
398
"..."
385
399
```
386
400
@@ -391,10 +405,10 @@ One or more named (or file-derived) snippets to add to setup.
391
405
392
406
``` console
393
407
rule hello_world:
394
- output:
395
- "...",
396
- resources:
397
- googlebatch_snippets="mpi,myscript.sh"
398
- shell:
408
+ output:
409
+ "...",
410
+ resources:
411
+ googlebatch_snippets="mpi,myscript.sh"
412
+ shell:
399
413
"..."
400
414
```
0 commit comments