您可以使用 Workflows,按照定義的順序執行服務:即工作流程。
結合 Google Cloud 服務、Cloud Run 函式或 Cloud Run 上代管的自訂服務,以及任何以 HTTP 為基礎的 API,建立彈性的無伺服器應用程式。這項產品不需管理基礎架構,並能視需求順暢調度資源,甚至將資源縮減至零。瞭解詳情
使用價值 $300 美元的免費抵免額,開始進行概念驗證
-
取得 Gemini 2.0 Flash Thinking 的存取權
-
每月免費使用 AI API 和 BigQuery 等熱門產品
-
不會自動收費,也不會要求您一定要購買特定方案
繼續探索超過 20 項一律免費的產品
使用超過 20 項實用的免費產品,包括 AI API、VM 和 data warehouse 等。
訓練
訓練與教學課程
使用 Cloud Translation 連接器執行批次翻譯
瞭解如何使用 Cloud Translation API 連接器,以非同步批次模式將檔案翻譯成其他語言。
訓練
訓練與教學課程
搭配使用 Workflows 與 Cloud Run 和 Cloud Functions
瞭解如何使用 Workflows 連結兩個公開 HTTP 服務 (使用 Cloud Functions)、外部 REST API 和私人 Cloud Run 服務。
訓練
訓練與教學課程
使用回呼建立人機迴圈工作流程
瞭解如何建立支援回呼 Webhook 的工作流程,並等待您輸入內容,以拒絕或驗證某些文字的翻譯結果。
訓練
訓練與教學課程
並行執行多項 BigQuery 工作
平行執行多個 BigQuery 查詢作業,與依序執行作業相比,可提升效能。
訓練
訓練與教學課程
使用 Workflows 執行 Batch 工作
瞭解如何使用 Workflows 安排及執行 Batch 工作,在兩個 Compute Engine VM 上平行執行六項工作。
訓練
訓練與教學課程
使用 Workflows 將資料從 Cloud Storage 載入 BigQuery
瞭解如何使用 Workflows、Cloud Functions 和 Firestore 執行無伺服器工作流程,將原始資料 (例如事件記錄) 從 Cloud Storage 載入至 BigQuery。
程式碼範例
程式碼範例
叫用 Cloud Run
執行 Cloud Run 工作,處理儲存在 Cloud Storage 中的事件資料。
程式碼範例
程式碼範例
使用連接器
使用連接器查詢 BigQuery 資料集,並將結果寫入 Google 試算表。
程式碼範例
程式碼範例
平行疊代
使用 for 迴圈執行平行疊代。
程式碼範例
程式碼範例
使用回呼等待事件
將回呼詳細資料儲存在 Firestore 資料庫中。
程式碼範例
程式碼範例
重試步驟
使用預設重試政策重試步驟。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-09-04 (世界標準時間)。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["難以理解","hardToUnderstand","thumb-down"],["資訊或程式碼範例有誤","incorrectInformationOrSampleCode","thumb-down"],["缺少我需要的資訊/範例","missingTheInformationSamplesINeed","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-09-04 (世界標準時間)。"],[],[],null,["# Workflows documentation\n=======================\n\n[Read product documentation](/workflows/docs/overview)\nYou can use Workflows to execute services in an order you define: a *workflow* .\nCombine the power of Google Cloud services, custom services hosted on Cloud Run functions or\nCloud Run, and any HTTP-based API to create flexible serverless applications.\nWorkflows requires no infrastructure management and scales seamlessly with demand,\nincluding scaling down to zero. [Learn more](/workflows/docs/overview)\n[Get started for free](https://console.cloud.google.com/freetrial) \n\n#### Start your proof of concept with $300 in free credit\n\n- Get access to Gemini 2.0 Flash Thinking\n- Free monthly usage of popular products, including AI APIs and BigQuery\n- No automatic charges, no commitment \n[View free product offers](/free/docs/free-cloud-features#free-tier) \n\n#### Keep exploring with 20+ always-free products\n\n\nAccess 20+ free products for common use cases, including AI APIs, VMs, data warehouses,\nand more.\n\nDocumentation resources\n-----------------------\n\nFind quickstarts and guides, review key references, and get help with common issues. \nfollow_the_signs\n\n### Get started\n\n-\n\n [Create and deploy a workflow using the console](/workflows/docs/create-workflow-console)\n\n-\n\n [Create and deploy a workflow using the gcloud CLI](/workflows/docs/create-workflow-gcloud)\n\n-\n\n [Create and deploy a workflow using Terraform](/workflows/docs/create-workflow-terraform)\n\n-\n\n [Execute a workflow using a client library](/workflows/docs/execute-workflow-client-libraries)\n\nfind_in_page\n\n### Reference\n\n-\n\n [Syntax reference](/workflows/docs/reference/syntax)\n\n-\n\n [Standard library reference](/workflows/docs/reference/stdlib/overview)\n\n-\n\n [Executions REST API](/workflows/docs/reference/executions/rest)\n\n-\n\n [Connectors reference](/workflows/docs/reference/googleapis)\n\ninfo\n\n### Resources\n\n-\n\n [Release notes](/workflows/docs/release-notes)\n\n-\n\n [Quotas and limits](/workflows/quotas)\n\n-\n\n [Pricing](/workflows/pricing)\n\n-\n\n [Get support](/workflows/docs/getting-support)\n\nRelated resources\n-----------------\n\nTraining and tutorials \nCode samples \nExplore self-paced training, use cases, reference architectures, and code samples with examples of how to use and connect Google Cloud services. Training \nTraining and tutorials\n\n### Run a batch translation using the Cloud Translation connector\n\n\nLearn how to use the Cloud Translation API connector to translate files to other\nlanguages in asynchronous batch mode.\n\n\n[Learn more](/workflows/docs/tutorials/translation-connector) \nTraining \nTraining and tutorials\n\n### Use Workflows with Cloud Run and Cloud Functions\n\n\nLearn how to use Workflows to link two public HTTP services (using Cloud Functions), an\nexternal REST API, and a private Cloud Run service together.\n\n\n[Learn more](/workflows/docs/tutorials/run/cloud-run) \nTraining \nTraining and tutorials\n\n### Create a human-in-the-loop workflow using callbacks\n\n\nLearn how to create a workflow that supports a callback webhook and waits for your\ninput to reject or validate the translation of some text.\n\n\n[Learn more](/workflows/docs/tutorials/callbacks-firestore) \nTraining \nTraining and tutorials\n\n### Run multiple BigQuery jobs in parallel\n\n\nRun multiple BigQuery query jobs in parallel, improving performance when compared to\nrunning the jobs serially.\n\n\n[Learn more](/workflows/docs/tutorials/bigquery-parallel-jobs) \nTraining \nTraining and tutorials\n\n### Run a Batch job using Workflows\n\n\nLearn how to use Workflows to schedule and run a Batch job that executes six tasks in\nparallel on two Compute Engine VMs.\n\n\n[Learn more](/workflows/docs/tutorials/batch-and-workflows) \nTraining \nTraining and tutorials\n\n### Load data from Cloud Storage to BigQuery using Workflows\n\n\nLearn how to run serverless workflows using Workflows, Cloud Functions, and Firestore\nto load raw data, such as event logs, from Cloud Storage to BigQuery.\n\n\n[Learn more](/workflows/docs/tutorials/load-data-from-cloud-storage-to-bigquery-using-workflows) \nCode sample \nCode Samples\n\n### Invoke Cloud Run\n\n\nExecute a Cloud Run job that processes event data saved in Cloud Storage.\n\n\n[Open GitHub](https://github.com/GoogleCloudPlatform/workflows-demos/blob/HEAD/cloud-run-jobs-payload-gcs/workflow.yaml) \nCode sample \nCode Samples\n\n### Use a connector\n\n\nQuery a BigQuery dataset and write the results to a Sheet spreadsheet using connectors.\n\n\n[Open GitHub](https://github.com/GoogleCloudPlatform/workflows-demos/blob/HEAD/workspace-integration/workflows-to-sheets/workflow.yaml) \nCode sample \nCode Samples\n\n### Iterate in parallel\n\n\nPerform parallel iteration using for loops.\n\n\n[Open GitHub](https://github.com/GoogleCloudPlatform/workflows-samples/blob/HEAD/src/parallel_iteration.workflows.yaml) \nCode sample \nCode Samples\n\n### Wait for events using callbacks\n\n\nStore callback details in a Firestore database.\n\n\n[Open GitHub](https://github.com/GoogleCloudPlatform/workflows-demos/blob/HEAD/callback-event/callback-event-sample.yaml) \nCode sample \nCode Samples\n\n### Retry steps\n\n\nRetry steps using a default retry policy.\n\n\n[Open GitHub](https://github.com/GoogleCloudPlatform/workflows-samples/blob/HEAD/src/error_retry.workflows.yaml)\n\nRelated videos\n--------------"]]