Commit 1d266a1 1 parent 783163c commit 1d266a1 Copy full SHA for 1d266a1
File tree 2 files changed +4
-1
lines changed
2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -522,7 +522,7 @@ def warn_on_database_password_value_without_usage(values):
522
522
523
523
PREFECT_ORION_DATABASE_TIMEOUT = Setting (
524
524
Optional [float ],
525
- default = 1 ,
525
+ default = 5.0 ,
526
526
)
527
527
"""A statement timeout, in seconds, applied to all database
528
528
interactions made by the API. Defaults to `1`.
Original file line number Diff line number Diff line change 49
49
PREFECT_ORION_ANALYTICS_ENABLED ,
50
50
PREFECT_ORION_BLOCKS_REGISTER_ON_START ,
51
51
PREFECT_ORION_DATABASE_CONNECTION_URL ,
52
+ PREFECT_ORION_DATABASE_TIMEOUT ,
52
53
PREFECT_ORION_SERVICES_FLOW_RUN_NOTIFICATIONS_ENABLED ,
53
54
PREFECT_ORION_SERVICES_LATE_RUNS_ENABLED ,
54
55
PREFECT_ORION_SERVICES_SCHEDULER_ENABLED ,
@@ -295,6 +296,8 @@ def pytest_sessionstart(session):
295
296
PREFECT_MEMOIZE_BLOCK_AUTO_REGISTRATION : False ,
296
297
# Disable auto-registration of block types as they can conflict
297
298
PREFECT_ORION_BLOCKS_REGISTER_ON_START : False ,
299
+ # Use more aggressive database timeouts during testing
300
+ PREFECT_ORION_DATABASE_TIMEOUT : 1 ,
298
301
},
299
302
source = __file__ ,
300
303
)
You can’t perform that action at this time.
0 commit comments