Skip to content

Create a taskOptions class (internal) that we can use to pass many parameters to a task #181

Description

@pcingola

There are many parameters and setting them on the Global space is becoming dangerous.
A new Class should be created to accommodate all parameters.
Sub-classes can implement system-specific parameters and options.

class TaskOptions {
    string system
    int mem = -1
    int cpus = 1
    int timeout = -1
    int wallTimeout = -1
    string[] rawOptions
}

class TaskOptionsLocal extends TaskOptions {
    string shellCmd = '/bin/bash ...'

}

class TaskOptionsAws extends TaskOptions {
    string instanceType = 'm5.large'
    string script = ''
    int dataDiskSize = -1
    ...
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions