alxjrvs / alxjrvs/orrey

Recurrence as anchor + interval_weeks; hourly horizon materialiser

Đang mở
#23 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
phase:2
Ngôn ngữ chính
HTML
Star
0
Fork
0
Merge trung bình
1 giờ 34 phút
Pull request đã merge (30 ngày)
23

Mô tả

Discord can't own recurrence (weekly = exactly one weekday; `count`/`end` can't be set externally), so Orrey does. Carried over from Hermuz as an idea: **recurrence as anchor + interval_weeks, anchor possibly in the past.**

- [ ] Next-N-occurrences from `recurrence_anchor` + `interval_weeks`, skipping occurrences before now, numbering from `first_session_number`.
- [ ] Hourly cron (`0 * * * *`): materialise sessions out to the horizon for every RUNNING campaign; enqueue Discord-event and Google projections for each new one.
- [ ] Horizon for **Discord scheduled events is capped at two upcoming per campaign**, treated as disposable (100 events/guild). Google and D1 can run further ahead — horizon size in `settings`.
- [ ] Idempotent: re-running materialisation creates nothing twice.
- [ ] Schedule the attendance post as a `jobs` row at the right lead time rather than posting at materialisation.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Hướng nghiên cứu

Start by tracing the existing campaign/session scheduling paths and where RUNNING campaigns, settings, D1 rows, Discord projections, Google projections, and jobs rows are handled. The issue is done when recurrence_anchor plus interval_weeks can materialise future sessions idempotently on an hourly cron, cap Discord events at two upcoming per campaign, and schedule attendance posts as jobs.

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

Đánh giá

Công nghệ
cloud
Lĩnh vực
backend, cloud, database
Loại issue
Tính năng
Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức độ hoạt động
Sôi nổi
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
32/100

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.