Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions providers/src/airflow/providers/edge/models/edge_logs.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ def logfile_path(task: TaskInstanceKey) -> Path:
)
if TYPE_CHECKING:
assert ti
assert isinstance(ti, TaskInstance)
base_log_folder = conf.get("logging", "base_log_folder", fallback="NOT AVAILABLE")
return Path(base_log_folder, FileTaskHandler(base_log_folder)._render_filename(ti, task.try_number))

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def _initialize_method_map() -> dict[str, Callable]:
# for compatibility with Airflow 2.10-line.
# Methods are potentially not existing more on main branch for Airflow 3.
from airflow.api.common.trigger_dag import trigger_dag
from airflow.cli.commands.task_command import _get_ti_db_access
from airflow.cli.commands.task_command import _get_ti_db_access # type: ignore[attr-defined]
from airflow.dag_processing.manager import DagFileProcessorManager
from airflow.dag_processing.processor import DagFileProcessor

Expand Down Expand Up @@ -82,7 +82,7 @@ def _initialize_method_map() -> dict[str, Callable]:
from airflow.providers.edge.models.edge_worker import EdgeWorker
from airflow.secrets.metastore import MetastoreBackend
from airflow.sensors.base import _orig_start_date
from airflow.utils.cli_action_loggers import _default_action_log_internal
from airflow.utils.cli_action_loggers import _default_action_log_internal # type: ignore[attr-defined]
from airflow.utils.log.file_task_handler import FileTaskHandler

functions: list[Callable] = [
Expand Down Expand Up @@ -118,7 +118,7 @@ def _initialize_method_map() -> dict[str, Callable]:
DagWarning.purge_inactive_dag_warnings,
expand_alias_to_datasets,
DatasetManager.register_dataset_change,
FileTaskHandler._render_filename_db_access,
FileTaskHandler._render_filename_db_access, # type: ignore[attr-defined]
Job._add_to_db,
Job._fetch_from_db,
Job._kill,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ def _logfile_path(task: TaskInstanceKey, session=NEW_SESSION) -> str:
)
if TYPE_CHECKING:
assert ti
assert isinstance(ti, TaskInstance)
return FileTaskHandler(".")._render_filename(ti, task.try_number)


Expand Down