Skip to content

API Endpoint - Logs #8135

@mik-laj

Description

@mik-laj

Description
Hello,

We need to prepare an endpoint that will read the logs for the task. Logs are already available in Web UI, so abstractions should be created and used in both places. The code responsible for reading the log in the Web UI is in the file airflow/www/views.py (method get_logs_with_metadata)
The token is metadata data serialized to JSON and encoded with base64. This prevents user from building clients based on a specific metadata structure. We cannot guarantee their permanent structure because it use external plugins.

  • GET /dags/{dag_id}/taskInstances/{task_id}/{execution_date}/logs/{task_try_number}

More details about API Endpoints:
#8118

Use case / motivation

N/A

Related Issues

N/A

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions