feat: track reverse geolocation, file extraction and pmtiles as daily pipeline stages

Đang mở
#1,921 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 2 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
38/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
backend, data-engineering

Hướng nghiên cứu

Start by reading parquet_builder, which the issue names as the reference implementation of TaskExecutionTracker (try_acquire, mark_completed, mark_failed), then follow create_pipeline_tasks to see how the downstream tasks are enqueued. The three workers to mirror it in are reverse_geolocation, gtfs_file_data_extractor and pmtiles_builder, and the daily monitor for gtfs_daily_pipeline needs the new stages joined by dataset_id. Done means each stage shows completed, failed or pending in the daily run, including enqueue failures marked from create_pipeline_tasks.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Describe the problem

The gtfs_daily_pipeline run shows feed outcomes but not the downstream tasks queued by create_pipeline_tasks, so a failed reverse geolocation, file extraction or pmtiles build is invisible in the daily view.

Proposed solution
  • reverse_geolocation, gtfs_file_data_extractor, pmtiles_builder: write TaskExecutionTracker rows (try_acquire, mark_completed, mark_failed), entity = dataset id (file extraction: dataset id + file name), as parquet_builder does.
  • create_pipeline_tasks: mark_triggered before enqueueing each task, commit first; mark_failed on enqueue failure.
  • Add each as a stage in the gtfs_daily_pipeline monitor, joined by dataset_id: completed / failed / pending.
Alternatives you've considered
  • Read each stage's status from its outputs (DB rows, GCS files): no failure state, and differs per stage.
Ngôn ngữ chính
Python
Star
34
Fork
7
Merge trung bình
2 ngày 22 giờ
Pull request đã merge (30 ngày)
21

Chuẩn bị môi trường

  • Có Dockerfile hoặc tệp Docker Compose
  • Có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của MobilityData/mobility-feed-api

Tất cả issue của MobilityData/mobility-feed-api

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.