dane805 opened a new issue, #60389:
URL: https://github.com/apache/airflow/issues/60389
### Apache Airflow version
3.1.5
### If "Other Airflow 3 version" selected, which one?
_No response_
### What happened?
CloudRunExecuteJobOperator fails with 404 errors in Docker, but the same
Cloud Run jobs work fine with gcloud CLI.
```
NotFound: 404 Requested entity was not found.
```
### What you think should happen instead?
CloudRunHook should allow specifying transport parameter (gRPC/REST).
### How to reproduce
from airflow.providers.google.cloud.operators.cloud_run import
CloudRunExecuteJobOperator
task = CloudRunExecuteJobOperator(
task_id="test",
project_id="my-project",
region="asia-northeast3",
job_name="my-job",
)
### Operating System
Debian (Docker)
### Versions of Apache Airflow Providers
apache-airflow-providers-google==19.1.0
### Deployment
Docker-Compose
### Deployment details
Standard Airflow 3.1.5 docker-compose setup with CeleryExecutor
### Anything else?
Workaround:
from google.cloud import run_v2
class CustomCloudRunHook(CloudRunHook):
def get_conn(self):
credentials, _ = self.get_credentials_and_project_id()
return run_v2.JobsClient(credentials=credentials, transport='rest')
### Are you willing to submit PR?
- [x] Yes I am willing to submit a PR!
### Code of Conduct
- [x] I agree to follow this project's [Code of
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]