Skip to content

Commit 24b6a85

Browse files
committed
Add deprecation for Java-based event ruler
1 parent 55295bf commit 24b6a85

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

localstack-core/localstack/config.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -846,9 +846,10 @@ def populate_edge_configuration(
846846
# get-function call.
847847
INTERNAL_RESOURCE_ACCOUNT = os.environ.get("INTERNAL_RESOURCE_ACCOUNT") or "949334387222"
848848

849+
# TODO: remove with 4.1.0
849850
# Determine which implementation to use for the event rule / event filtering engine used by multiple services:
850851
# EventBridge, EventBridge Pipes, Lambda Event Source Mapping
851-
# Options: python (default) | java (preview)
852+
# Options: python (default) | java (deprecated since 4.0.3)
852853
EVENT_RULE_ENGINE = os.environ.get("EVENT_RULE_ENGINE", "python").strip()
853854

854855
# -----

localstack-core/localstack/deprecations.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,11 @@ def is_affected(self) -> bool:
269269
"0.14.0",
270270
"This option has no effect anymore. Please use OPENSEARCH_ENDPOINT_STRATEGY instead.",
271271
),
272+
EnvVarDeprecation(
273+
"PERSIST_ALL",
274+
"2.3.2",
275+
"LocalStack treats backends and assets the same with respect to persistence. Please remove PERSIST_ALL.",
276+
),
272277
EnvVarDeprecation(
273278
"DNS_LOCAL_NAME_PATTERNS",
274279
"3.0.0",
@@ -299,9 +304,11 @@ def is_affected(self) -> bool:
299304
" Please remove PROVIDER_OVERRIDE_STEPFUNCTIONS.",
300305
),
301306
EnvVarDeprecation(
302-
"PERSIST_ALL",
303-
"2.3.2",
304-
"LocalStack treats backends and assets the same with respect to persistence. Please remove PERSIST_ALL.",
307+
"EVENT_RULE_ENGINE",
308+
"4.0.3",
309+
"The Java-based event ruler is deprecated because our latest Python-native implementation introduced in 4.0.3"
310+
" is faster, achieves great AWS parity, and fixes compatibility issues with the StepFunctions JSONata feature."
311+
" Please remove EVENT_RULE_ENGINE.",
305312
),
306313
]
307314

localstack-core/localstack/services/lambda_/event_source_mapping/pollers/poller.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ class PipeStateReasonValues(PipeStateReason):
2121
# TODO: add others (e.g., failure)
2222

2323

24-
POLL_INTERVAL_SEC: float = 1
25-
2624
LOG = logging.getLogger(__name__)
2725

2826

0 commit comments

Comments
 (0)