Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Console fleet totals count a starting worker's leases and devices as zero

Đang mở
#406 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ó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
65/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript
Lĩnh vực
backend

Hướng nghiên cứu

Start in src/gateway/aggregate.ts and read leasesHeld, workersStats, and busiestWorkers to understand how starting workers are included in fleet totals. Check how the aggregation handles a worker restart while gateway-issued leases are still live. Done means the console totals and “Leases, last hour” chart reflect those live leases and do not count from an incorrect low total.

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

Mô tả

bug:new

Found while reviewing #398 (task #365).

src/gateway/aggregate.ts (leasesHeld, workersStats, busiestWorkers) counts a starting worker's unread leases and devices as 0. During a worker restart, the console's fleet totals can say nothing is leased while gateway-issued leases are live, and the "Leases, last hour" chart counts back from the low number (it can go negative).

Written by an agent.

Ngôn ngữ chính
TypeScript
Star
15
Fork
1
Merge trung bình
8 giờ 23 phút
Pull request đã merge (30 ngày)
136

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

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

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 callstackincubator/simlock

Tất cả issue của callstackincubator/simlock

Issue tương tự

Thêm issue về TypeScript

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.