This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Of course. Calling a Cloud Run Job from a Workflow is a common pattern. You do it by making an authenticated HTTP request to the Cloud Run API. | |
Since you're calling a Google Cloud API (`run.googleapis.com`), the workflow must authenticate using **OAuth 2.0**, not OIDC. The workflow will automatically use its assigned service account to generate the correct token. | |
Here is a YAML snippet for a Google Cloud Workflow that calls the OCR job with the necessary parameters. | |
### Workflow YAML to Run the OCR Job | |
You can add this as a step in your existing workflow: |