cavatica_tasks_create: Create Task

View source: R/SyntacticSugar.R

cavatica_tasks_createR Documentation

Create Task

Description

Create Task

Usage

cavatica_tasks_create(
  project,
  name,
  app_id,
  inputs = NULL,
  batch = NULL,
  description = NULL,
  use_interruptible_instances = TRUE,
  execution_settings = NULL
)

Arguments

project

a sevenbridges 'Project' object. See readme for instructions on how to create this object

name

name of task

app_id

id of app/workflow to run

inputs

list describing input values. See cavatica_app_inputs() for a list of input paramaters

batch

list describing how to batch task. Construct value passed to function using sevenbridges::batch(). For example: batch = batch(input = "fastq", criteria = c("metadata.sample_id","metadata.noexist_id"))

description

description of task

use_interruptible_instances

use spot instances? (boolean)

execution_settings

control the instance type and maximum number of parallel instances (list, e.g. list(instance_type = "c4.2xlarge;ebs-gp2;2000", max_parallel_instances = 1, use_memoization = false, use_elastic_disk = false))

Value

sevenbridges Task object


selkamand/utilitybeltcavatica documentation built on April 26, 2023, 4:18 p.m.