Skip to content

Commit c3cb7ac

Browse files
committed
fix(testcontainers): add task manager config for 1.5
These are required with newer Prefect versions. Signed-off-by: Fatih Acar <[email protected]>
1 parent f7735e6 commit c3cb7ac

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

python_testcontainers/infrahub_testcontainers/container.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,8 @@ def create_env_file(self, directory: Path, version: str) -> Path:
152152
"INFRAHUB_TESTING_TASKMGR_BACKGROUND_SVC_REPLICAS": "1",
153153
"PREFECT_MESSAGING_BROKER": "prefect_redis.messaging",
154154
"PREFECT_MESSAGING_CACHE": "prefect_redis.messaging",
155+
"PREFECT_SERVER_EVENTS_CAUSAL_ORDERING": "prefect_redis.ordering",
156+
"PREFECT_SERVER_CONCURRENCY_LEASE_STORAGE": "prefect_redis.lease_storage",
155157
"PREFECT__SERVER_WEBSERVER_ONLY": "true",
156158
"PREFECT_API_DATABASE_MIGRATE_ON_START": "false",
157159
"PREFECT_API_BLOCKS_REGISTER_ON_START": "false",

python_testcontainers/infrahub_testcontainers/docker-compose-cluster.test.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,8 @@ services:
184184

185185
PREFECT_MESSAGING_BROKER:
186186
PREFECT_MESSAGING_CACHE:
187+
PREFECT_SERVER_EVENTS_CAUSAL_ORDERING:
188+
PREFECT_SERVER_CONCURRENCY_LEASE_STORAGE:
187189
PREFECT__SERVER_WEBSERVER_ONLY:
188190
PREFECT_API_DATABASE_MIGRATE_ON_START:
189191
PREFECT_API_BLOCKS_REGISTER_ON_START:
@@ -225,6 +227,8 @@ services:
225227
INFRAHUB_CACHE_ADDRESS: ${INFRAHUB_TESTING_CACHE_ADDRESS}
226228
PREFECT_MESSAGING_BROKER: prefect_redis.messaging
227229
PREFECT_MESSAGING_CACHE: prefect_redis.messaging
230+
PREFECT_SERVER_EVENTS_CAUSAL_ORDERING: prefect_redis.ordering
231+
PREFECT_SERVER_CONCURRENCY_LEASE_STORAGE: prefect_redis.lease_storage
228232
PREFECT_REDIS_MESSAGING_HOST: "${INFRAHUB_TESTING_CACHE_ADDRESS:-cache}"
229233
PREFECT_REDIS_MESSAGING_DB: "1"
230234
PREFECT_REDIS_MESSAGING_CONSUMER_MIN_IDLE_TIME: "30"

python_testcontainers/infrahub_testcontainers/docker-compose.test.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ services:
9595

9696
PREFECT_MESSAGING_BROKER:
9797
PREFECT_MESSAGING_CACHE:
98+
PREFECT_SERVER_EVENTS_CAUSAL_ORDERING:
99+
PREFECT_SERVER_CONCURRENCY_LEASE_STORAGE:
98100
PREFECT__SERVER_WEBSERVER_ONLY:
99101
PREFECT_API_DATABASE_MIGRATE_ON_START:
100102
PREFECT_API_BLOCKS_REGISTER_ON_START:
@@ -136,6 +138,8 @@ services:
136138
INFRAHUB_CACHE_ADDRESS: ${INFRAHUB_TESTING_CACHE_ADDRESS}
137139
PREFECT_MESSAGING_BROKER: prefect_redis.messaging
138140
PREFECT_MESSAGING_CACHE: prefect_redis.messaging
141+
PREFECT_SERVER_EVENTS_CAUSAL_ORDERING: prefect_redis.ordering
142+
PREFECT_SERVER_CONCURRENCY_LEASE_STORAGE: prefect_redis.lease_storage
139143
PREFECT_REDIS_MESSAGING_HOST: "${INFRAHUB_TESTING_CACHE_ADDRESS:-cache}"
140144
PREFECT_REDIS_MESSAGING_DB: "1"
141145
PREFECT_REDIS_MESSAGING_CONSUMER_MIN_IDLE_TIME: "30"

0 commit comments

Comments
 (0)