Repository navigation
Validate cron expressions at save time so invalid schedules fail loudly - #1558
Conversation
…ck (closes #1508) Reject scheduled-trigger playbooks with an invalid or wrong-field-count cron expression at save time via cron::Schedule::from_str, instead of silently accepting a schedule that will never fire. Also recover the cron poll loop's lifecycle lock read from a poisoned state instead of panicking, which previously stopped the runner permanently. Co-Authored-By: Claude <[email protected]>
Code Review SummaryThis PR closes two independent bugs from #1508 with a small, well-scoped diff (2 files, +130/-2 net). Both fixes are correct, tested, and verified locally: FindingsCritical IssuesNone. Suggested Improvements
Nitpicks
Verification Performed
Acceptance Criteria Coverage
Recommendation: Approve. The scoping question (partial poisoned-lock coverage) is worth a follow-up issue or a one-line comment for future readers, but it does not regress anything relative to |
malibio
left a comment
There was a problem hiding this comment.
Review complete (see full report in PR comment above). Recommendation: Approve — both acceptance-criteria bugs fixed correctly and tested meaningfully; net positive change. Note: GitHub blocks self-approval since I'm the PR author (malibio), so this is posted as --comment rather than --approve; treat the recommendation above as the approval verdict.
…rred gap Addresses code review feedback on #1508 / PR #1558: the cron poller's lock read now recovers from poisoning, but engine.rs's other lock call sites still propagate a panic. Note why that's scoped out rather than an oversight. Co-Authored-By: Claude <[email protected]>
|
Addressed the review's scoping note: added a doc comment on |
Reviewer asked for the in-code comment to cover *why* recovering a poisoned lock via into_inner() is safe (no cross-field invariants), not just what the recovery does. Corrected the claim while at it: activate_playbook does update trigger_index/cron_registry before active_playbooks across a loop, so a panic mid-activation could in principle leave a partial entry — that's a pre-existing risk on this lock either way, not something the recovery path introduces. Co-Authored-By: Claude <[email protected]>
Addressed Review Feedback
Build, Re-Review DecisionDecision: NO RE-REVIEW NEEDED Rationale: This follow-up is a documentation-only change (comment text, no logic/behavior/test changes), verified against the actual |
Closes #1508