Workflows에서 게시되는 커넥터를 사용하면 워크플로 내에서 다른 Google Cloud 제품에 더 쉽게 액세스할 수 있습니다. 사용 가능한 커넥터에 대한 자세한 내용은 커넥터 참조를 확인하세요.
커넥터를 사용하면 워크플로 내에서 다른 Google Cloud API에 연결할 수 있고 워크플로를 이러한 Google Cloud 제품과 쉽게 통합할 수 있습니다. 예를 들어 커넥터를 사용하여 Pub/Sub 메시지를 게시하거나, Firestore 데이터베이스에 대해 데이터 읽기 또는 쓰기를 수행하거나, Secret Manager에서 인증 키를 검색할 수 있습니다.
커넥터 사용 방법 알아보기
커넥터는 Google Cloud API의 세부정보를 알 필요가 없도록 요청의 형식 지정을 처리하여 메서드와 인수를 제공하므로 호출 서비스를 단순화합니다.
커넥터는 기본 제공되는 Identity and Access Management 인증을 사용하여 다른 Google Cloud 제품과 상호작용합니다. 커넥터를 사용하는 워크플로가 특정 API에 올바르게 인증되기 위해서는 해당 서비스 계정에 적절한 권한이 할당되어 있어야 합니다. 예를 들어 Pub/Sub에 메시지를 게시하려면 워크플로와 연결된 서비스 계정에 roles/pubsub.publisher 역할을 부여해야 합니다.
다른 Google Cloud 제품 인증에 대해 자세히 알아보려면 워크플로에 Google Cloud 리소스에 대한 액세스 권한 부여를 참조하세요.
기본적으로 요청 제한 시간은 30분입니다. 이는 장기 실행 작업의 경우 장기 실행 작업 내의 개별 요청(예: 작업 시작 또는 상태 확인)에 적용됩니다. 전체 작업의 제한 시간은 connector_params 필드를 사용하여 설정할 수 있습니다. 커넥터 참조를 확인하세요.
장기 실행 작업
장기 실행 작업을 수행하는 호출에는 다음 동작이 적용됩니다.
Workflows는 작업이 완료되거나 실패할 때까지 워크플로 실행을 차단합니다.
기본적으로 호출 제한 시간은 30분입니다. 호출 제한 시간은 connector_params 필드를 사용하여 변경할 수 있습니다(최대 1년). 커넥터 참조를 확인하세요.
커넥터는 장기 실행 작업을 주기적으로 폴링합니다. 기본적으로 Workflows는 폴링할 때 1.25의 지수 백오프를 사용합니다. 폴링 간격이 1초부터 시작하여 60초까지 느려집니다.
각 폴링 시도는 청구 가능한 단계로 계산됩니다. 폴링 매개변수는 connector_params 필드를 사용하여 변경할 수 있습니다. 커넥터 참조를 확인하세요.
앞의 재시도 메커니즘이 실패한 폴링 시도에 적용됩니다.
폴링 응답을 확인하고 응답 페이로드가 잘못된 경우 ResponseTypeError 오류가 반환됩니다.
장기 실행 작업 중에 오류가 발생하면 Workflows가 OperationError 오류를 일으킵니다. 이 오류에는 작업별 세부정보가 있는 추가 속성 error가 포함됩니다.
장기 실행 작업이 실패하면 커넥터 호출은 다음 속성이 있는 예외를 발생시킵니다.
message: 인간이 읽을 수 있는 오류 메시지.
tags: 태그 목록. 장기 실행 작업 커넥터 호출의 경우 목록에 OperationError가 포함됩니다.
[[["이해하기 쉬움","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-08(UTC)"],[],[],null,["# Understand connectors\n\nWorkflows publishes connectors to make it easier to access other\nGoogle Cloud products within a workflow. For a detailed reference of available\nconnectors, see the\n[Connectors reference](/workflows/docs/reference/googleapis).\n\nConnectors can be used to connect to other Google Cloud APIs within\na workflow, and to integrate your workflows with those Google Cloud\nproducts. For example, you can use connectors to publish Pub/Sub\nmessages, read or write data to a Firestore database, or retrieve\nauthentication keys from Secret Manager.\n[Learn how to use a connector](/workflows/docs/invoke-connector-to-gcp-service).\n\nConnectors simplify calling services because they handle the formatting of\nrequests for you, providing methods and arguments so that you don't need to know\nthe details of a Google Cloud API.\n\nConnectors have built-in behavior for handling [retries](#retries) and\n[long-running operations](#lro).\n| **Note:** API operations that are facilitated by Workflows connectors should not be confused with calling or invoking a Google Cloud service---such as Cloud Run functions or Cloud Run---which is done through an [HTTP request](/workflows/docs/http-requests).\n\nAuthentication\n--------------\n\nConnectors use built-in Identity and Access Management authentication to interact with other\nGoogle Cloud products. Note that a workflow using a connector still\nneeds to have proper permissions assigned to its service account to properly\nauthenticate to a given API. For example, to publish a message to\nPub/Sub, the service account associated with your workflow needs to be\ngranted the [`roles/pubsub.publisher` role](/pubsub/docs/access-control#roles).\nTo learn more about authenticating to other Google Cloud products, see\n[Grant a workflow permission to access Google Cloud resources](/workflows/docs/authentication).\n\nRetries\n-------\n\nAll connectors apply the following\n[retry policy](/workflows/docs/reference/syntax/retrying) and error\nhandling configurations:\n\n- Workflows uses an\n [idempotent retry policy](/workflows/docs/reference/syntax/retrying#retry-idempotent)\n for GET requests.\n\n- Workflows uses a\n [non-idempotent retry policy](/workflows/docs/reference/syntax/retrying#retry-non-idempotent)\n for all other HTTP methods.\n\n- By default, requests time out after 30 minutes. Note that for long-running\n operations, this applies to individual requests (for example, starting the\n operation or checking its status) within the long-running operation. The\n timeout for the entire operation can be configured using the\n `connector_params` field. See the [Connectors reference](/workflows/docs/reference/googleapis).\n\nLong-running operations\n-----------------------\n\nFor calls performing a long-running operation, the following behaviors apply:\n\n- Workflows blocks the workflow execution until the operation\n completes successfully or fails.\n\n- By default, calls time out after 30 minutes. The timeout of the call can be\n changed using the `connector_params` field (to a maximum of one year). See the\n [Connectors reference](/workflows/docs/reference/googleapis).\n\n- Connectors poll long-running operations periodically. By default,\n Workflows uses an exponential backoff of 1.25 when polling,\n starting with 1 second and slowing to 60 seconds between polls.\n Each polling attempt counts as a billable step. The polling parameters can be\n changed using the `connector_params` field. See the [Connectors reference](/workflows/docs/reference/googleapis).\n\n- The preceding retry mechanism applies to a failed polling attempt.\n\n- Poll responses are checked and if the response payload is invalid, a\n `ResponseTypeError` error is returned.\n\n- When an error occurs during a long-running operation, Workflows\n raises an `OperationError` error. The error includes an additional attribute,\n `error`, which contains operation-specific details.\n\nIf a long-running operation fails, the connector call throws an exception with\nthe following attributes:\n\n- `message`: Human-readable error message.\n- `tags`: A list of tags. For a long-running operation connector call, the list includes `OperationError`.\n- `operation`: The failed long-running operation object.\n\nFor a detailed list of supported long-running operation types, see the\n[Connectors reference](/workflows/docs/reference/googleapis).\n\nWhat's next\n-----------\n\n- [Tutorial: Run a batch translation using the Cloud Translation connector](/workflows/docs/tutorials/translation-connector)"]]