bugraoz93 commented on code in PR #66261: URL: https://github.com/apache/airflow/pull/66261#discussion_r3369372973
########## airflow-core/src/airflow/api/client/local_client.py: ########## @@ -19,22 +19,77 @@ from __future__ import annotations +import json +from datetime import datetime +from typing import Any + import httpx +from airflowctl.api.client import ClientKind as AirflowCtlClientKind, ServerResponseError, provide_api_client +from airflowctl.api.datamodels.generated import PoolBody, TriggerDAGRunPostBody +from airflowctl.exceptions import AirflowCtlConnectionException +from pydantic import BaseModel, ConfigDict, Field, ValidationError as PydanticValidationError from airflow.api.common import delete_dag, trigger_dag +from airflow.api_fastapi.app import get_auth_manager, init_auth_manager +from airflow.api_fastapi.auth.managers.simple.user import SimpleAuthManagerUser +from airflow.configuration import conf from airflow.exceptions import AirflowBadRequest, PoolNotFound from airflow.models.pool import Pool +from airflow.utils.platform import getuser from airflow.utils.types import DagRunTriggeredByType +class LocalDagRunResponse(BaseModel): Review Comment: We should use it from API directly. We shouldn't create anything new -- 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]
