You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Scheduled tasks: last run result, failed runs with retry, and limits (#354 follow-up) #473
Follow-up to #354 (its first slice, Edit + Pause/Resume + documented missed runs, is in the PR that Fixes #354). This issue holds the rest of #354's scope, which the Owner decision of 2026-10-20 left for later.
Expected behavior
Last run and failures. Each scheduled task in Settings → Scheduled tasks shows when it last ran and whether that run failed, with a reason. DSH's catalog already carries lastDelivery (inbox delivery receipt, not the model's result), and history gives saved deliveries; a run's actual outcome (the Bot's turn finished or failed) is FlyBot's to record.
Retry. A failed run can be run again from its row with one click.
Maintenance triage (2026-10-20 09:56 Asia/Shanghai, main 465357e): still needs-human; depends on #353/#349 (PRs #470/#472). Proposed answers for the owner to confirm:
(a) Recommended: a run counts as failed when DSH could not deliver it or the Bot's turn errored (a turn that ends without an answer is not a failure). Each task row shows last run time + result + reason; Retry runs the same prompt once now (an extra run, no backfill of missed runs); failures also appear in notifications/Agent inbox. Limits ([Team] Bound agent loops and resource consumption #56) stay out of this step.
(b) Same as (a) but include limits now (e.g. max 20 tasks per person, smallest interval 5 min). agent-ready only after the owner's answer.
Owner decision (2026-10-20): option (a) as recommended — a run fails only when DSH delivery fails or the Bot turn errors (a finished turn with no answer is not a failure). Each task row shows last run time, result and reason; Retry re-runs now with the same prompt (no backfill of missed runs); failures also surface in notifications and the Agent inbox. Limits (#56) not in this step.
Claimed by maintenance run (2026-10-20 11:55 Asia/Shanghai, main a7adfe0): developing on branch feat/473-schedule-last-run-retry in Birfy/FlyBot, following the Owner decision above (first slice only).
Minor decisions for #473 (decided by the maintenance worker under the owner's delegation, 2026-10-20 12:08 Asia/Shanghai), PR #494:
Not delivered = the task is still due 2 minutes after FlyBot first saw it due while the app runs (seen due once is not enough: right after a start DSH is still delivering times it missed while closed). Checked every minute and on each Scheduled tasks read; told once per missed time.
Results shown: Running since / Last run / Last run · Stopped / Last run · Failed: reason. A user-stopped turn is "Stopped", not a failure. A run whose turn was still going at a restart shows as a plain "Last run". A reminder DSH delivered that the Bot has not taken up yet shows as "Last run" at DSH's delivery time.
Retry appears only on a failed run of a task that is not paused (a paused task is refused: "Resume the task first"). It goes to the Bot's current part, or the group's Session, framed exactly like DSH's own reminder so the run is recorded on the same row and the connector verdict stays the scheduled one. DSH's next time is untouched; if DSH itself delivers a stuck time later (after a restart or a task change), that is DSH's missed-run rule.
Group task: fails when a member's turn in that round failed (reason names them).
Activity
Birfy commentedon Oct 20, 2026
Maintenance triage (2026-10-20 09:56 Asia/Shanghai, main
465357e): still needs-human; depends on #353/#349 (PRs #470/#472). Proposed answers for the owner to confirm:agent-readyonly after the owner's answer.Birfy commentedon Oct 20, 2026
Owner decision (2026-10-20): option (a) as recommended — a run fails only when DSH delivery fails or the Bot turn errors (a finished turn with no answer is not a failure). Each task row shows last run time, result and reason; Retry re-runs now with the same prompt (no backfill of missed runs); failures also surface in notifications and the Agent inbox. Limits (#56) not in this step.
Edit and pause scheduled tasks; document missed runs (ThinkFlowLab#474)
Birfy commentedon Oct 20, 2026
Claimed by maintenance run (2026-10-20 11:55 Asia/Shanghai, main
a7adfe0): developing on branchfeat/473-schedule-last-run-retryin Birfy/FlyBot, following the Owner decision above (first slice only).Birfy commentedon Oct 20, 2026
Minor decisions for #473 (decided by the maintenance worker under the owner's delegation, 2026-10-20 12:08 Asia/Shanghai), PR #494:
Merge origin/main into feat/473-schedule-last-run-retry