snakemake-executor-plugin-latch
package is a plugin that schedules jobs on machines in Latch’s cloud.
When all inputs for a job are available, the plugin queues the job. A dispatcher server consumes jobs from this queue and, when a suitably sized machine is available, schedules the job on that machine.
latch register
).
You can specify the container you want the job to execute in using the container:
directive in the rule definition.
For example:
snakemake
and snakemake-storage-plugin-latch
installed, and that snakemake
is available on $PATH
.You can check that this is the case by running the container locally:resources:
directive:
cpu
/ cpus
for CPU specification,mem_{unit}
for RAM specification - {unit}
can be any metric or binary unit, such as mib
or gb
,disk_{unit}
for Ephemeral Storage / Disk space specification, with the same rules for {unit}
as mem
,gpu
/ gpus
for specifying the number of GPUs desired, andgpu_type
for the type of GPU to use. This field is mandatory if gpu
/gpus
is greater than 0. See here for valid GPU type/quantity combinations.mem
and disk
, you can also specify resources with the unit after the quantity - for example, the following is equivalent to the previous rule’s resources: