您可以使用 Workflows 按您定义的顺序执行服务:工作流。
将 Google Cloud 服务、Cloud Run 函数或 Cloud Run 上托管的自定义服务以及任何基于 HTTP 的 API 的强大功能结合使用,来创建灵活的无服务器应用。工作流不需要进行基础架构管理,并且可以无缝地按需扩缩,包括缩减至零。了解详情
获享 $300 免费赠金开始概念验证
-
体验 Gemini 2.0 Flash Thinking
-
免费使用热门产品(包括 AI API 和 BigQuery)的每月用量
-
不会自动收费,无需承诺
继续探索 20 多种提供“始终免费”用量的产品
使用适用于常见应用场景(包括 AI API、虚拟机、数据仓库等)的 20 多种免费产品。
培训
培训和教程
使用 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 虚拟机上并行执行六项任务。
培训
培训和教程
使用 Workflows 将数据从 Cloud Storage 加载到 BigQuery
了解如何使用 Workflows、Cloud Functions 和 Firestore 运行无服务器工作流,将原始数据(例如事件日志)从 Cloud Storage 加载到 BigQuery。
代码示例
代码示例
调用 Cloud Run
执行 Cloud Run 作业,以处理保存在 Cloud Storage 中的事件数据。
代码示例
代码示例
使用连接器
使用连接器查询 BigQuery 数据集并将结果写入 Google 表格。
代码示例
代码示例
并行迭代
使用 for 循环执行并行迭代。
代码示例
代码示例
使用回调等待事件
将回调详细信息存储在 Firestore 数据库中。
代码示例
代码示例
重试步骤
使用默认重试政策重试步骤。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-18。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-08-18。"],[],[],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--------------"]]