Skip to content

Commit 2f7b4f0

Browse files
soccermaxMax Gruenfelder
and
Max Gruenfelder
authored
Skip increasing priority based on config (#279)
* wip * wip * wip * add documentation * add test * changelog * wip * wip * wip --------- Co-authored-by: Max Gruenfelder <[email protected]>
1 parent 808b165 commit 2f7b4f0

16 files changed

+306
-731
lines changed

.npmrc

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
package-lock=false
2-
yes=true
1+
yes=true
2+
legacy-peer-deps=true

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
66
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
77

8+
## v1.8.7 - 2025-02-05
9+
10+
### Added
11+
12+
- added event option increasePriorityOverTime to disable the automatic increase of priority for long-waiting events
13+
814
## v1.8.6 - 2025-01-31
915

1016
### Added

docs/configure-event/index.md

+5-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ nav_order: 4
1111
# Configure Events
1212

1313
<!-- prettier-ignore -->
14+
1415
- TOC
15-
{: toc}
16+
{: toc}
1617

1718
<!-- prettier-ignore-end -->
1819

@@ -48,6 +49,7 @@ The configuration YAML file is where all the required information regarding even
4849
| appInstances | Specifies the application instance numbers on which the event should be processed. The instance number is extracted from the environment variable `CF_INSTANCE_INDEX`. If not defined, the event is processed on all instances of the connected applications. | null |
4950
| retryFailedAfter | The duration (in milliseconds) after which failed events should be retried, provided the retry limit has not been exceeded. | `5 * 60 * 1000` |
5051
| multiInstanceProcessing | (Currently applicable only for Single Tenant) Allows processing of the same event type and subtype across multiple application instances. | false |
52+
| increasePriorityOverTime | After three minutes, the priority of unprocessed events is increased by one. This behavior can be disabled with this option. The behavior is documented [here](#priority-of-events). | true |
5153

5254
## Configuration
5355

@@ -134,7 +136,8 @@ the event might not execute exactly as scheduled.
134136
### Timezone Configuration
135137

136138
The Event-Queue framework provides flexibility in handling timezones for periodic events. A central setting,
137-
[cronTimezone](/event-queue/setup/#initialization-parameters), can be configured to define the global timezone used when calculating the cron schedule for all events.
139+
[cronTimezone](/event-queue/setup/#initialization-parameters), can be configured to define the global timezone used when
140+
calculating the cron schedule for all events.
138141
This allows events to execute according to specific local time zones rather than Coordinated Universal Time (UTC), which
139142
is useful for applications operating across different regions.
140143

0 commit comments

Comments
 (0)