Skip to content

fix: handle negative time.durations with error#878

Merged
JohnRoesler merged 1 commit intov2from
fix-negative-duration-handling
Oct 8, 2025
Merged

fix: handle negative time.durations with error#878
JohnRoesler merged 1 commit intov2from
fix-negative-duration-handling

Conversation

@JohnRoesler
Copy link
Contributor

What does this do?

properly handles negative time.Duration in Duration and DurationRandom jobs by returning an error

Which issue(s) does this PR fix/relate to?

resolves: #877

List any changes that modify/break current functionality

Have you included tests for your changes?

Did you document any new/modified functionality?

  • Updated example_test.go
  • Updated README.md

Notes

@JohnRoesler JohnRoesler merged commit 70468cc into v2 Oct 8, 2025
3 checks passed
@JohnRoesler JohnRoesler deleted the fix-negative-duration-handling branch October 8, 2025 20:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] - Adding job with negative duration breaks scheduler

1 participant