Skip to content

j75689/Tmaster

Folders and files

NameName
Last commit message
Last commit date

Latest commit

534f679 · Dec 22, 2022

History

54 Commits
Dec 22, 2022
Aug 27, 2021
Aug 27, 2021
Jan 5, 2021
Aug 27, 2021
Aug 27, 2021
Mar 25, 2022
Feb 4, 2021
Mar 25, 2022
Aug 27, 2021
Dec 16, 2020
Mar 25, 2022
Dec 21, 2022
Mar 25, 2022
Mar 25, 2022
Dec 17, 2020
Dec 17, 2020

Repository files navigation

Tmaster

This project was born from the inspiration of AWS Step Function.

It can be used to orchestrate services and build serverless applications. Workflows manage failures, retries, parallelization, service integrations, and observability so developers can focus on higher-value business logic.

Infrastructure

infrastructure

Examples

mutation begin{
  CreateJob(input: {
    comment: "demo"
    parameters: "{\"xxx\":{\"body\":\"abc\"},\"max_retry\": 1}"
    start_at: "test_grpc"
    tasks: [
      {
        name:"open_google_search"
        type: TASK
        next: "test_grpc"
        result_path: "${result.text}"
        endpoint: {
          protocol: HTTP
          method: GET
          url: "https://www.google.com/?hl=zh-tw"
          body: "${body}"
        },
        timeout: 10,
        retry: {
          error_on: [TIMEOUT]
          max_attempts: "${max_retry}"
          interval: 1
        }
	catch: {
          error_on: [ALL],
          next: "open_baidu_search"
        }
      },
      {
        name:"open_baidu_search",
        type: TASK,
        next: "test_grpc"
        endpoint: {
          protocol: HTTP
          method: GET
          url: "https://www.baidu.com/"
        },
        timeout: 60,
        retry: {
          error_on: [TIMEOUT]
          max_attempts: "${max_retry}"
          interval: 1
        }
      },
      {
        name: "test_grpc"
        type: TASK
        endpoint: {
          protocol: GRPC
          url: "example-grpc:10050"
          body:"#{Execution.CauseError}"
          symbol: "example.HealthService/Health"
        }
        result_path: "${result.getitem}"
        output_path: "${result.getitem}"
        end: true
      }
    ]
  })
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Languages