Skip to content

feat: State-support (active, failed, complete, record, paused)#791

Draft
kagkarlsson wants to merge 39 commits intomasterfrom
descheduling-support
Draft

feat: State-support (active, failed, complete, record, paused)#791
kagkarlsson wants to merge 39 commits intomasterfrom
descheduling-support

Conversation

@kagkarlsson
Copy link
Owner

Brief, plain english overview of your changes here

For now see PR.md

Fixes

Reminders

  • Added/ran automated tests
  • Update README and/or examples
  • Ran mvn spotless:apply

kagkarlsson and others added 30 commits January 24, 2026 22:10
- Add active() and deactivated() factory methods to ScheduledExecutionsFilter
- Add withIncludeDeactivated() to optionally include deactivated executions
- Deprecate all() in favor of active()
- Update queryForFilter to respect new filter options

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Adds SchedulerClient.reactivate(TaskInstanceId, Instant) to reschedule
deactivated executions (PAUSED, FAILED, COMPLETE, RECORD, WAITING) back
to ACTIVE state with reset execution history.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Fluent builder for max-retries handlers with thenRemove(), thenDeactivate(state),
and then(callback) for full control. Adds RescheduleUpdate for rescheduling with
failure count reset.
@kagkarlsson kagkarlsson changed the title State-support (active, failed, complete, record, paused) feat: State-support (active, failed, complete, record, paused) Feb 23, 2026
Comment on lines +104 to +109
/**
* The time after which old deactivated executions are automatically deleted. Set to 0 to disable.
*/
@DurationUnit(HOURS)
private Duration deleteDeactivatedAfter = SchedulerBuilder.DEFAULT_DELETE_DEACTIVATED_AFTER;

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check unit

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