@@ -119,11 +119,11 @@ This will define the machine type for a particular step, overriding the default
119119
120120``` console
121121rule 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:
127127 "..."
128128```
129129
@@ -136,11 +136,11 @@ This will define the image family for a particular step, overriding the default
136136
137137``` console
138138rule 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:
144144 "..."
145145```
146146
@@ -160,11 +160,11 @@ This will define the image project for a particular step, overriding the default
160160
161161``` console
162162rule 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:
168168 "..."
169169```
170170
@@ -175,11 +175,11 @@ This will define the bucket for a particular step, overriding the default from t
175175
176176``` console
177177rule 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:
183183 "..."
184184```
185185
@@ -189,11 +189,11 @@ This will define the mount path for a bucket for a particular step, overriding t
189189
190190``` console
191191rule 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:
197197 "..."
198198```
199199
@@ -204,11 +204,11 @@ This will define the work tasks for a particular step, overriding the default fr
204204
205205``` console
206206rule 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:
212212 "..."
213213```
214214
@@ -218,11 +218,11 @@ The URL of an existing network resource (e.g., `projects/{project}/global/networ
218218
219219``` console
220220rule 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:
226226 "..."
227227```
228228
@@ -232,11 +232,25 @@ The URL of an existing subnetwork resource (e.g., `projects/{project}/regions/{r
232232
233233``` console
234234rule 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., ` snakemake-sa@projectid.iam.gserviceaccount.com ` )
246+
247+ ``` console
248+ rule hello_world:
249+ output:
250+ "...",
251+ resources:
252+ googlebatch_service_account="snakemake-sa@projectid.iam.gserviceaccount.com"
253+ shell:
240254 "..."
241255```
242256
@@ -246,11 +260,11 @@ This will define the milliseconds per cpu-second for a particular step, overridi
246260
247261``` console
248262rule 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:
254268 "..."
255269```
256270
@@ -260,11 +274,11 @@ This will define the work tasks per node (Google batch calls these tasks) for a
260274
261275``` console
262276rule 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:
268282 "..."
269283```
270284
@@ -274,11 +288,11 @@ This will define the memory for a particular step as an integer in MiB, overridi
274288
275289``` console
276290rule hello_world:
277- output:
278- "...",
279- resources:
280- googlebatch_memory=2000
281- shell:
291+ output:
292+ "...",
293+ resources:
294+ googlebatch_memory=2000
295+ shell:
282296 "..."
283297```
284298
@@ -289,11 +303,11 @@ This is the [boot disk type](https://cloud.google.com/compute/docs/disks#pdspecs
289303
290304``` console
291305rule 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:
297311 "..."
298312```
299313
@@ -304,11 +318,11 @@ This is the boot disk [image](https://github.com/googleapis/googleapis/blob/2fd7
304318
305319``` console
306320rule 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:
312326 "..."
313327```
314328
@@ -319,11 +333,11 @@ The [size of the boot disk](https://github.com/googleapis/googleapis/blob/2fd762
319333
320334``` console
321335rule 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:
327341 "..."
328342```
329343
@@ -333,11 +347,11 @@ This will define the retry times for a step overriding the default from the comm
333347
334348``` console
335349rule 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:
341355 "..."
342356```
343357
@@ -347,11 +361,11 @@ This will define the max run duration for a step overriding the default from the
347361
348362``` console
349363rule 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:
355369 "..."
356370```
357371
@@ -361,11 +375,11 @@ This will define the extra labels to add to the Google Batch job.
361375
362376``` console
363377rule 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:
369383 "..."
370384```
371385
@@ -376,11 +390,11 @@ A container to use only with `image_family` set to batch-cos* (see [here](https:
376390
377391``` console
378392rule 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:
384398 "..."
385399```
386400
@@ -391,10 +405,10 @@ One or more named (or file-derived) snippets to add to setup.
391405
392406``` console
393407rule 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:
399413 "..."
400414```
0 commit comments