You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|[EnableImmediateExecutionMain.java](./examples/features/src/main/java/com/github/kagkarlsson/examples/EnableImmediateExecutionMain.java)| When scheduling executions to run `now()` or earlier, the local `Scheduler` will be hinted about this, and "wake up" to go check for new executions earlier than it normally would (as configured by `pollingInterval`. |
155
+
|[MaxRetriesMain.java](./examples/features/src/main/java/com/github/kagkarlsson/examples/MaxRetriesMain.java)| How to set a limit on the number of retries an execution can have. |
156
+
|[ExponentialBackoffMain.java](./examples/features/src/main/java/com/github/kagkarlsson/examples/ExponentialBackoffMain.java)| How to use exponential backoff as retry strategy instead of fixed delay as is default. |
157
+
|[ExponentialBackoffWithMaxRetriesMain.java](./examples/features/src/main/java/com/github/kagkarlsson/examples/ExponentialBackoffWithMaxRetriesMain.java)| How to use exponential backoff as retry strategy **and** a hard limit on the maximum number of retries. |
158
+
|[TrackingProgressRecurringTaskMain.java](./examples/features/src/main/java/com/github/kagkarlsson/examples/TrackingProgressRecurringTaskMain.java)| Recurring jobs may store `task_data` as a way of persisting state across executions. This example shows how. |
159
+
|[SpawningOtherTasksMain.java](./examples/features/src/main/java/com/github/kagkarlsson/examples/SpawningOtherTasksMain.java)| Demonstrates on task scheduling instances of another by using the `executionContext.getSchedulerClient()`. |
160
+
|[SchedulerClientMain.java](./examples/features/src/main/java/com/github/kagkarlsson/examples/SchedulerClientMain.java)| Demonstates some of the `SchedulerClient`'s capabilities. Scheduling, fetching scheduled executions etc. |
161
+
|[RecurringTaskWithPersistentScheduleMain.java](./examples/features/src/main/java/com/github/kagkarlsson/examples/RecurringTaskWithPersistentScheduleMain.java)| Multi-instance recurring jobs where the `Schedule` is stored as part of the `task_data`. For example suitable for multi-tenant applications where each tenent should have a recurring task. |
|[JsonSerializerMain.java](./examples/features/src/main/java/com/github/kagkarlsson/examples/JsonSerializerMain.java)| Overrides serialization of `task_data` from Java-serialization (default) to JSON. |
164
+
|[JobChainingUsingTaskDataMain.java](./examples/features/src/main/java/com/github/kagkarlsson/examples/JobChainingUsingTaskDataMain.java)| Job chaining, i.e. "when this instance is done executing, schedule another task. |
165
+
|[JobChainingUsingSeparateTasksMain.java](./examples/features/src/main/java/com/github/kagkarlsson/examples/JobChainingUsingSeparateTasksMain.java)| Job chaining, as above. |
166
+
|[InterceptorMain.java](./examples/features/src/main/java/com/github/kagkarlsson/examples/InterceptorMain.java)| Using `ExecutionInterceptor` to inject logic before and after execution for all `ExecutionHandler`. |
167
+
168
+
164
169
165
170
#### Spring Boot
166
171
@@ -256,6 +261,12 @@ How often to update the heartbeat timestamp for running executions. Default `5m`
256
261
:gear:`.missedHeartbeatsLimit(int)`<br/>
257
262
How many heartbeats may be missed before the execution is considered dead. Default `6`.
Adds an `SchedulerListener` which will receive Scheduler- and Execution-related events. For Spring Boot, simply register a Bean of type `SchedulerListener`.
269
+
259
270
:gear:`.schedulerName(SchedulerName)`<br/>
260
271
Name of this scheduler-instance. The name is stored in the database when an execution is picked by a scheduler.
0 commit comments