Todos os produtos
Search
Central de documentação

DataWorks:ListDownstreamTaskInstances

Última atualização: Jun 26, 2026

Consulta uma lista paginada de instâncias descendentes de uma instância.

Descrição da operação

Esta operação de API está disponível para todas as edições do DataWorks.

Experimente agora

Experimente esta API no OpenAPI Explorer, sem necessidade de assinatura manual. Chamadas bem-sucedidas geram automaticamente código SDK correspondente aos seus parâmetros. Faça o download com segurança de credenciais integrada para uso local.

Testar

Autorização RAM

Nenhuma autorização necessária para esta operação. Se você encontrar problemas com esta operação, entre em contato com o suporte técnico.

Parâmetros da solicitação

Parâmetro

Tipo

Obrigatório

Descrição

Exemplo

Id

integer

Sim

O ID da instância.

1234

PageSize

integer

Não

O número de entradas por página. Valor padrão: 10.

10

PageNumber

integer

Não

O número da página. As páginas começam a partir da página 1. Valor padrão: 1.

1

Elementos de resposta

Elemento

Tipo

Descrição

Exemplo

object

RequestId

string

O ID da solicitação.

22C97E95-F023-56B5-8852-B1A77A17XXXX

PagingInfo

object

As informações de paginação.

TaskInstances

array<object>

As instâncias. Este parâmetro está obsoleto e foi substituído pelo parâmetro DownstreamTaskInstances.

array<object>

StepType

string

The scheduling dependency type. Valid values:

  • Normal: same-cycle scheduling dependency

  • CrossCycle: cross-cycle scheduling dependency

Normal

TaskId

integer

The ID of the task for which the instance is generated.

1234

TaskType

string

The type of the task for which the instance is generated.

ODPS_SQL

TaskName

string

The name of the task for which the instance is generated.

SQL node

Description

string

The description.

test

WorkflowId

integer

The ID of the workflow to which the instance belongs.

1234

WorkflowName

string

The name of the workflow to which the instance belongs.

Test workflow

TriggerType

string

The method to trigger instance scheduling.

Valid values:

  • Scheduler: scheduling cycle-based trigger

  • Manual: manual trigger

Valores válidos:

  • Scheduler :
  • Manual :

Scheduler

TriggerRecurrence

string

The running mode of the instance after it is triggered. This parameter takes effect only if the TriggerType parameter is set to Scheduler.

Valid values:

  • Pause

  • Skip

  • Normal

Valores válidos:

  • Pause :
  • Skip :
  • Normal :

Normal

WorkflowInstanceId

integer

The workflow instance ID.

1234

WorkflowInstanceType

string

The type of the workflow instance.

Valid values:

  • SmokeTest

  • SupplementData

  • Manual

  • ManualWorkflow

  • Normal

  • ManualFlow

Valores válidos:

  • SmokeTest :
  • SupplementData :
  • Manual :
  • ManualWorkflow :
  • Normal :
  • ManualFlow :

Normal

Timeout

integer

The timeout period of task running. Unit: seconds.

Note: The value of this parameter is rounded up by hour.

3600

RerunMode

string

The rerun mode.

Valid values:

  • AllDenied: The task cannot be rerun regardless of whether it is successfully run or fails to run.

  • FailureAllowed: The task can be rerun only after it fails to run.

  • AllAllowed: The task can be rerun regardless of whether it is successfully run or fails to run.

Valores válidos:

  • AllDenied :
  • FailureAllowed :
  • AllAllowed :

AllAllowed

RunNumber

integer

The number of times the instance is run. By default, the value starts from 1.

1

PeriodNumber

integer

The sequence number of the cycle. This parameter indicates the cycle of the task instance on the current day.

1

BaselineId

integer

The baseline ID.

1234

Priority

integer

The priority of the task. Valid values: 1 to 8. A larger value indicates a higher priority. Default value: 1.

1

RuntimeResource

object

The information about the resource group with which the instance is associated.

ResourceGroupId

string

The ID of the resource group for scheduling configured for task running.

S_res_group_524258031846018_1684XXXXXXXXX

Image

string

The ID of the image configured for task running.

i-xxxxxx

Cu

string

The default number of compute units (CUs) configured for task running.

0.25

Runtime

object

The runtime information about the instance.

ProcessId

string

The instance run ID.

T3_123

Gateway

string

The host for running.

cn-shanghai.1.2

DataSource

object

The information about the associated data source.

Name

string

The name of the data source.

mysql_test

Status

string

The status of the instance. Valid values:

  • NotRun: The instance is not run.

  • Running: The instance is running.

  • WaitTime: The instance is waiting for the scheduling time to arrive.

  • CheckingCondition: Branch conditions are being checked for the instance.

  • WaitResource: The instance is waiting for resources.

  • Failure: The instance fails to be run.

  • Success: The instance is successfully run.

  • Checking: Data quality is being checked for the instance.

  • WaitTrigger: The instance is waiting to be triggered by external scheduling systems.

Success

TriggerTime

integer

The scheduling time.

1710239005403

Bizdate

integer

The data timestamp.

1710239005403

StartedTime

integer

The time when the instance started to run.

1710239005403

FinishedTime

integer

The time when the instance finished running.

1710239005403

Id

integer

The instance ID.

1234

ProjectId

integer

The workspace ID.

100

ProjectEnv deprecated

string

The environment of the workspace. This parameter is deprecated and replaced by the EnvType parameter. Valid values:

Prod

EnvType

string

The environment in which the data source is used. Valid values:

  • Dev

  • Prod

Prod

Owner

string

The account ID of the task owner.

100

CreateTime

integer

The creation time.

1710239005403

ModifyTime

integer

The modification time.

1710239005403

CreateUser

string

The account ID of the creator.

1000

ModifyUser

string

The account ID of the modifier.

1000

DownstreamTaskInstances

array<object>

As instâncias descendentes.

array<object>

DependencyType

string

The scheduling dependency type. Valid values:

  • Normal

  • CrossCycle

Normal

TaskInstance

object

The information about a task instance.

TaskId

integer

The ID of the task for which the instance is generated.

1234

TaskType

string

The type of the task for which the instance is generated.

ODPS_SQL

TaskName

string

The name of the task for which the instance is generated.

SQL node

Description

string

The description.

test

WorkflowId

integer

The ID of the workflow to which the instance belongs.

1234

WorkflowName

string

The name of the workflow to which the instance belongs.

Test workflow

TriggerType

string

The trigger type. Valid values:

  • Scheduler: scheduling cycle-based trigger

  • Manual: manual trigger

Scheduler

TriggerRecurrence

string

The running mode of the instance after it is triggered. This parameter takes effect only if the TriggerType parameter is set to Scheduler. Valid values:

  • Pause

  • Skip

  • Normal

Normal

WorkflowInstanceId

integer

The workflow instance ID.

1234

WorkflowInstanceType

string

The type of the workflow instance. Valid values:

  • Normal

  • Manual

  • SmokeTest

  • SupplementData

  • ManualWorkflow

Normal

Timeout

integer

The timeout period of task running. Unit: seconds.

Note: The value of this parameter is rounded up by hour.

3600

RerunMode

string

The rerun mode.

AllAllowed

RunNumber

integer

The number of times the instance is run. By default, the value starts from 1.

1

PeriodNumber

integer

The sequence number of the cycle. This parameter indicates the cycle of the task instance on the current day.

1

BaselineId

integer

The baseline ID.

1234

Priority

integer

The priority of the task. Minimum value: 1. Maximum value: 8. A larger value indicates a higher priority. Default value: 1.

1

RuntimeResource

object

The configurations of the runtime environment, such as the resource group information.

ResourceGroupId

string

The ID of the resource group for scheduling configured for task running.

S_res_group_524258031846018_1684XXXXXXXXX

Image

string

The ID of the image configured for task running.

i-xxxxxx

Cu

string

The default number of compute units (CUs) configured for task running.

0.25

Runtime

object

The runtime information about the instance.

ProcessId

string

The instance run ID.

T3_123

Gateway

string

The host for running.

cn-shanghai.1.2

DataSource

object

The information about the associated data source.

Name

string

The name of the data source.

mysql_test

Status

string

The status of the instance. Valid values:

  • NotRun: The instance is not run.

  • Running: The instance is running.

  • WaitTime: The instance is waiting for the scheduling time to arrive.

  • CheckingCondition: Branch conditions are being checked for the instance.

  • WaitResource: The instance is waiting for resources.

  • Failure: The instance fails to be run.

  • Success: The instance is successfully run.

  • Checking: Data quality is being checked for the instance.

  • WaitTrigger: The instance is waiting to be triggered by external scheduling systems.

Success

TriggerTime

integer

The scheduling time.

1710239005403

Bizdate

integer

The data timestamp.

1710239005403

StartedTime

integer

The time when the instance started to run.

1710239005403

FinishedTime

integer

The time when the instance finished running.

1710239005403

Id

integer

The instance ID.

1234

ProjectId

integer

The workspace ID.

100

EnvType

string

The environment in which the data source is used. Valid values:

  • Dev

  • Prod

Prod

Owner

string

The account ID of the task owner.

1000

CreateTime

integer

The creation time.

1710239005403

ModifyTime

integer

The modification time.

1710239005403

CreateUser

string

The account ID of the creator.

1000

ModifyUser

string

The account ID of the modifier.

1000

TotalCount

integer

O número total de entradas retornadas.

100

PageSize

integer

O número de entradas por página.

10

PageNumber

integer

O número da página.

1

Exemplos

Resposta de sucesso

JSON formato

{
  "RequestId": "22C97E95-F023-56B5-8852-B1A77A17XXXX",
  "PagingInfo": {
    "TaskInstances": [
      {
        "StepType": "Normal",
        "TaskId": 1234,
        "TaskType": "ODPS_SQL",
        "TaskName": "SQL node\n",
        "Description": "test",
        "WorkflowId": 1234,
        "WorkflowName": "Test workflow",
        "TriggerType": "Scheduler",
        "TriggerRecurrence": "Normal",
        "WorkflowInstanceId": 1234,
        "WorkflowInstanceType": "Normal",
        "Timeout": 3600,
        "RerunMode": "AllAllowed",
        "RunNumber": 1,
        "PeriodNumber": 1,
        "BaselineId": 1234,
        "Priority": 1,
        "RuntimeResource": {
          "ResourceGroupId": "S_res_group_524258031846018_1684XXXXXXXXX",
          "Image": "i-xxxxxx",
          "Cu": "0.25"
        },
        "Runtime": {
          "ProcessId": "T3_123\n",
          "Gateway": "cn-shanghai.1.2"
        },
        "DataSource": {
          "Name": "mysql_test\n"
        },
        "Status": "Success",
        "TriggerTime": 1710239005403,
        "Bizdate": 1710239005403,
        "StartedTime": 1710239005403,
        "FinishedTime": 1710239005403,
        "Id": 1234,
        "ProjectId": 100,
        "ProjectEnv": "Prod",
        "EnvType": "Prod",
        "Owner": "100",
        "CreateTime": 1710239005403,
        "ModifyTime": 1710239005403,
        "CreateUser": "1000\n",
        "ModifyUser": "1000\n"
      }
    ],
    "DownstreamTaskInstances": [
      {
        "DependencyType": "Normal",
        "TaskInstance": {
          "TaskId": 1234,
          "TaskType": "ODPS_SQL",
          "TaskName": "SQL node",
          "Description": "test",
          "WorkflowId": 1234,
          "WorkflowName": "Test workflow",
          "TriggerType": "Scheduler",
          "TriggerRecurrence": "Normal",
          "WorkflowInstanceId": 1234,
          "WorkflowInstanceType": "Normal",
          "Timeout": 3600,
          "RerunMode": "AllAllowed",
          "RunNumber": 1,
          "PeriodNumber": 1,
          "BaselineId": 1234,
          "Priority": 1,
          "RuntimeResource": {
            "ResourceGroupId": "S_res_group_524258031846018_1684XXXXXXXXX",
            "Image": "i-xxxxxx",
            "Cu": "0.25"
          },
          "Runtime": {
            "ProcessId": "T3_123",
            "Gateway": "cn-shanghai.1.2"
          },
          "DataSource": {
            "Name": "mysql_test"
          },
          "Status": "Success",
          "TriggerTime": 1710239005403,
          "Bizdate": 1710239005403,
          "StartedTime": 1710239005403,
          "FinishedTime": 1710239005403,
          "Id": 1234,
          "ProjectId": 100,
          "EnvType": "Prod",
          "Owner": "1000",
          "CreateTime": 1710239005403,
          "ModifyTime": 1710239005403,
          "CreateUser": "1000",
          "ModifyUser": "1000"
        }
      }
    ],
    "TotalCount": 100,
    "PageSize": 10,
    "PageNumber": 1
  }
}

Códigos de erro

Consulte Códigos de Erro para uma lista completa.

Notas de versão

Consulte Notas de Versão para uma lista completa.