Combined with Serverless workflow, asynchronous function invocations can be applied to the task flows in complex scenarios that involve large amounts of data. You can orchestrate Function Compute tasks in sequence, branches, or parallel. Based on the defined steps, Serverless workflow reliably coordinates task executions, tracks the state transition of each task, and executes the retry logic that you defined to ensure the smooth execution of your workflow. This topic describes how to configure orchestration for asynchronous tasks.



  1. Log on to the Serverless Workflow console.
  2. In the top navigation bar, select a region.
  3. In the left-side navigation pane, click Flows. On the page that appears, click Create Flow.
  4. In the Flow Definition wizard of the Create Flow page. Click Create Flow with Code and configure Details and Definition. Then click Next Step.
    • Details: Configure Name and Description.
    • Definition: Configure the code segment in the Definition field. The following sample code provides an example:
      version: v1
      type: flow
        - type: task
          name: mytask
          resourceArn: acs:fc:{region}:{account}:services/{serviceName}.{qualifier}/functions/{functionName}
          pattern: sync  # Async invocation with sync pattern
              InvocationType: Async
  5. In the Flow Config wizard of the Create Flow page, configure Config Flow Role and click Create Flow.
  6. On details page of the created flow, click Start Execution.
    You can use the preceding operations to trigger a flow task. For more information, see Asynchronous function invocation.