Page MenuHomePhabricator

[jobs-api] Support following logs from Loki
Closed, ResolvedPublic

Description

Port the jobs logs --follow feature to read logs from Loki instead of from Kubernetes.

This is hard because the Loki API for this uses websockets, and the modern Python websocket client libraries prefer to use asyncio.

Details

Related Changes in GitLab:
TitleReferenceAuthorSource BranchDest Branch
jobs-api: bump to 0.0.395-20250806171229-63780c9erepos/cloud/toolforge/toolforge-deploy!910group_203_bot_f4d95069bb2675e4ce1fff090c1c1620bump_jobs-apimain
loki_logs: Support following logsrepos/cloud/toolforge/jobs-api!193taavitaavi/loki-followmain
Customize query in GitLab

Related Objects

Event Timeline

group_203_bot_f4d95069bb2675e4ce1fff090c1c1620 opened https://gitlab.wikimedia.org/repos/cloud/toolforge/toolforge-deploy/-/merge_requests/910

jobs-api: bump to 0.0.395-20250806171229-63780c9e