Skip to content

Fix long scheduled instant delays#7728

Open
sfmskywalker wants to merge 1 commit into
release/3.8.0from
codex/5978-long-specific-instant-delay
Open

Fix long scheduled instant delays#7728
sfmskywalker wants to merge 1 commit into
release/3.8.0from
codex/5978-long-specific-instant-delay

Conversation

@sfmskywalker

Copy link
Copy Markdown
Member

Summary

  • cap ScheduledSpecificInstantTask timer intervals at int.MaxValue milliseconds
  • reschedule capped intervals until the requested instant is reached
  • add a regression test for delays beyond the System.Timers.Timer interval limit

Fixes #5978.

Tests

  • dotnet test test/unit/Elsa.Scheduling.UnitTests/Elsa.Scheduling.UnitTests.csproj --filter ScheduledSpecificInstantTaskTests
  • dotnet test test/unit/Elsa.Scheduling.UnitTests/Elsa.Scheduling.UnitTests.csproj --no-restore

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.

1 participant