Graviti Help Center
  • Graviti Help Center
  • Developer Documentation
    • Developer Tools
      • Graviti Python SDK
      • Graviti CLI
      • Graviti Open API
        • DataSet Operation
        • Data Operation
        • Examples
          • Model training
          • Data mining
  • Product Documentation
    • TensorBay
      • TensorBay: For All Stages of Algorithm Research
      • Quick Start for Developers
      • Quick Start for Team
      • How to Quickly Prepare a Dataset
        • How to Create a New Dataset
        • Manage Data in Cloud Storage
        • Create a Dataset by Filtering
        • Create a Dataset by Merging
        • Quick Use of Open Datasets by Forking
      • Version Control
        • Manage Data Files
        • Manage Annotations
        • Manage Dataset Information
        • Manage Versions
        • Manage Dataset Branches
        • Dataset Activities
        • Dataset Settings
      • Pharos Online Data Visualization
        • Explore Pharos
        • Pharos Visualization Widgets Instruction
      • Collaboration
        • Create a New Team
        • Invite Team Members
        • Team Management
        • Dataset Management
        • View Activity Log
      • How to Integrate TensorBay into Your Pipeline
      • Action
        • Create a Workflow
        • Run Workflows
        • Manage Workflows
        • YAML Syntax Description
        • Crontab syntax Description
        • Automatic Configurations
    • Open Datasets
      • Basic Concepts
      • Search for Datasets
      • Preview Data and Label Distribution Online
      • Use and Manage Datasets Online
      • Download Open Datasets
      • Didn't find the dataset you want?
  • APPs
    • GroundTruth Tools
      • Annotate pictures
    • Sextant
      • Create an Evaluation
      • Custom Metrics
      • Start to Evaluate
      • View Results
  • Release Note
  • Graviti Official Website
Powered by GitBook
On this page
  • Related Concepts
  • Runtime Environment of Job
  • Job Dependencies
  • Parameters Setting of Job
  • Attributes of Parameters
  • Definition of Parameters
  • Parameters Setting
  • How to Quote Parameters
  • Environment Settings of Jobs

Was this helpful?

  1. Product Documentation
  2. TensorBay
  3. Action

YAML Syntax Description

PreviousManage WorkflowsNextCrontab syntax Description

Last updated 3 years ago

Was this helpful?

Related Concepts

Job is the basic unit of the Action workflow. A is generated by defining multiple jobs and setting the dependencies of the jobs. The TensorBay workflow engine can automate tasks by executing DAGs. Set the following YAML file as an example.

  1. [tasks]: Define all the jobs under this workflow.

  2. [tasks.hello-world]: Defines a task, with the name "hello-world".

  3. [tasks.hello-world.container]: This job is executed under the docker container.

  4. [tasks.hello-world.container.image]: The image used by the docker container is alpine:latest.

  5. [tasks.hello-world.container.command]: The command executed in the docker container is 991`called echo.

  6. [tasks.hello-world.container.args]: The argument to echo is "hello world".

Runtime Environment of Job

Job supports the following three runtime environments. Each job has only one runtime environment.

1. Container

In this environment you can use a specified image to generate a container and execute it.The job content will be defined by the image.

2. Script

In this environment, a specified script wil be excuted in the docker container.

3. Git

In this environment, a git repo code will be executed inside the docker container.

Job Dependencies

Dependencies

Jobs can define their dependencies by keywords.

Flowchart

A diamond-shaped DAG. Task A executes first, then task B and task C conduct simultaneously. Task D only starts to run when task B and task C are finished.

Parameters Setting of Job

Attributes of Parameters

Name

The name of a parameter, which is used to refer to the parameter in the code of a workflow.

Type

The type of a parameter. The following three types of parameters are supported in Actions now.

  • String: string

  • Number: number, including integers and floating-point numbers

  • Boolean: boolean value, true/false

Default

The default value of a parameter. If the default value is not specified at the beginning, the system will automatically use a preset default value.

Definition of Parameters

Support to view and set the detailed parameters on the parameter details page.

Parameters Setting

Manual Parameters Setting: If a workflow is started manually, then its values can be set via the TensorBay console.

Automatic Parameters Setting: If a workflow is started automatically, then the system will use default values.

How to Quote Parameters

You can quote a parameter in workflow with its name.

  1. The parameter to be quoted must be within {{}}.

  2. The parameter name must start with workflow.parameters.

  3. The parameter name must be the same as the preset one.

Environment Settings of Jobs

Environment defines the environment variables of the container, which can be quoted in the same way as the environment variables of the normal docker container.

DAG