[api] Report the current tick in task status

Đang mở
#232 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 1 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
47/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
api, backend

Hướng nghiên cứu

Start by reading the implementation of GET /v1/tasks/{task_id} from dependent issue #209 and identify how task state is stored and returned. Then trace how OpenCDA runs the simulation and where task-directory files are managed; issue #230 defines the max_ticks limit. Done means the response includes the current tick and max_ticks (or null when unset), with OpenCDA publishing progress for the runner.

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

Mô tả

Problem or motivation

GET /v1/tasks/{task_id} from #209 returns only id and state. While a task is RUNNING, a client cannot tell how far the simulation has progressed. Scenario Manager shows a progress bar for each run.

Proposed solution
  • Add tick and max_ticks to the task returned by GET /v1/tasks/{task_id}. max_ticks is the limit from #230, or null if none is set.
  • Have OpenCDA publish the current tick for the runner, for example by writing it to a file in the task directory every few ticks.
Area

Scenario management

Additional context

Depends on #209.

Ngôn ngữ chính
Python
Star
11
Fork
11
Merge trung bình
1 ngày 16 giờ
Pull request đã merge (30 ngày)
12

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

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 CAVISE/OpenCDA

Tất cả issue của CAVISE/OpenCDA

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.