Skip to content

Preserve job configuration when at or until rejects input - #659

Open
rupayon123 wants to merge 1 commit into
dbader:masterfrom
rupayon123:contribution/atomic-job-configuration-20260914
Open

rupayon123 wants to merge 1 commit into
dbader:masterfrom
rupayon123:contribution/atomic-job-configuration-20260914

Conversation

@rupayon123

Copy link
Copy Markdown

Rejected job configuration currently can overwrite previously valid settings: .at("25:00", "Europe/Amsterdam") changes an existing UTC timezone before raising, and .until() with a past deadline replaces the existing deadline before raising.

Validate the candidate time and deadline before assigning them to the job. Three regression tests cover preserving an existing time/timezone, preserving an existing deadline, and leaving an initially unset deadline unset after rejection.

Validation: all three regressions failed before the fix; the full local suite passes (84 tests), and mypy passes for schedule. No claim of upstream CI completion yet.

AI-assisted contribution; changes and regression evidence reviewed before submission.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant