Inbox: run a routine on a linked machine, managed from the one that made it

Đang mở
#3,958 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ó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
18/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ệ
typescript

Hướng nghiên cứu

Start by reading the machine-link launch forwarding path and the inboxLaunch.enabled / 403 window_only grant check, since the proposal hinges on whether a scheduled run can reuse that forward without a window press. Then look at the routine record and schedule handling, including the asleep/if_missed: run_once missed-run recording, and at the folder picker that already groups folders by linked machine. Done looks like a routine that names a target machine, forwards due runs through the link, records unreachable targets as missed, and is gated by an explicit opt-in on the target — the grant rule is still an open design question to settle before coding.

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

Mô tả

Problem

Routines run on the computer that made them (#3409, "Known gaps in this version": "A routine is managed on the computer that made it" and "no sync of schedules between computers").

My setup is an always-on devbox where I manage everything, linked to a laptop. Some routines need the laptop (local apps, files, a signed-in browser). Today the only way is to create the routine in the laptop's own Inbox, so my routines end up split across two windows, and the laptop's schedule only fires while it's awake.

Proposal

Let a routine name a linked machine to run on, while its record and schedule stay on the machine that made it:

  • Create/edit: the folder picker already groups folders by linked machine for launches; a routine could take a folder on a linked machine the same way.
  • Run: when a run is due, the owning machine sends it as a launch through the existing machine-link forward (the same path a window launch on a linked machine takes). The runs' thread already works across linked machines.
  • Offline machine: if the target isn't reachable, the run is recorded as missed (like asleep), and if_missed: run_once sends it once the machine is back.
  • Grant: a launch through the link needs the window mark today (403 window_only without it). A scheduled run has no window press, so this would need its own rule, e.g. the target machine opts in to "routines from linked machines" next to inboxLaunch.enabled.

The last point is the part I'm least sure fits your model. Happy to hear if there's a better way, or if this is out of scope.

Ngôn ngữ chính
TypeScript
Star
8.7k
Fork
649
Merge trung bình
16 giờ 1 phút
Pull request đã merge (30 ngày)
756

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 backnotprop/plannotator

Tất cả issue của backnotprop/plannotator

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.