Skip to content

Commit 1ac6c04

Browse files
committed
wip
1 parent 717bf3e commit 1ac6c04

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

docs/configure-event/index.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ they should be processed.
4141
## Parameters
4242

4343
| Property | Description | Default Value |
44-
| ----------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------- |
44+
|-------------------------------| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------- |
4545
| impl | Path of the implementation class associated with the event. | - |
4646
| type | Specifies the type of the event. | - |
4747
| subType | Specifies the subtype of the event, further categorizing the event type. | - |
@@ -58,6 +58,7 @@ they should be processed.
5858
| appNames | Specifies the application names on which the event should be processed. The application name is extracted from the environment variable `VCAP_APPLICATION`. If not defined, the event is processed on all connected applications.<br><br>- Supports regex patterns in the format `/pattern/flags` (e.g., `/srv/i` for case-insensitive matching).<br>- If the value is **not** a regex, it is treated as a string and must match exactly. | null |
5959
| 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 |
6060
| retryFailedAfter | The duration (in milliseconds) after which failed events should be retried, provided the retry limit has not been exceeded. | `5 * 60 * 1000` |
61+
| retryOpenAfter | The duration (in milliseconds) after which failed events should be retried, provided the retry limit has not been exceeded. | `5 * 60 * 1000` |
6162
| multiInstanceProcessing | (Currently applicable only for Single Tenant) Allows processing of the same event type and subtype across multiple application instances. | false |
6263
| 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 |
6364
| keepAliveInterval | Specifies the interval (in seconds) at which keep-alive signals are sent during event processing to monitor system health. | 60 |

src/EventQueueProcessorBase.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ class EventQueueProcessorBase {
4141
#isPeriodic;
4242
#lastSuccessfulRunTimestamp;
4343
#retryFailedAfter;
44+
#retryOpenAfter;
4445
#keepAliveRunner;
4546
#currentKeepAlivePromise = Promise.resolve();
4647
#etagMap;
@@ -69,6 +70,7 @@ class EventQueueProcessorBase {
6970
this.__parallelEventProcessing = LIMIT_PARALLEL_EVENT_PROCESSING;
7071
}
7172
this.#retryFailedAfter = this.#eventConfig.retryFailedAfter ?? DEFAULT_RETRY_AFTER;
73+
this.#retryOpenAfter = this.#eventConfig.retryOpenAfter ?? DEFAULT_RETRY_AFTER;
7274
this.__concurrentEventProcessing = this.#eventConfig.multiInstanceProcessing;
7375
this.__retryAttempts = this.#isPeriodic ? 1 : this.#eventConfig.retryAttempts ?? DEFAULT_RETRY_ATTEMPTS;
7476
this.__selectMaxChunkSize = this.#eventConfig.selectMaxChunkSize ?? SELECT_LIMIT_EVENTS_PER_TICK;

src/config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ const ALLOWED_EVENT_OPTIONS_AD_HOC = [
6060
"processAfterCommit",
6161
"checkForNextChunk",
6262
"retryFailedAfter",
63+
"retryOpenAfter",
6364
"multiInstanceProcessing",
6465
"kind",
6566
"timeBucket",

0 commit comments

Comments
 (0)