File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -119,6 +119,18 @@ class Settings(ControlFlowSettings):
119
119
alias = "PREFECT_LOGGING_LEVEL" ,
120
120
)
121
121
122
+ prefect_api_url : Optional [str ] = Field (
123
+ default = None ,
124
+ description = "The URL for the Prefect API. Leave unset to use an ephemeral API." ,
125
+ alias = "PREFECT_API_URL" ,
126
+ )
127
+
128
+ prefect_server_allow_ephemeral_mode : bool = Field (
129
+ default = True ,
130
+ description = "If True, ephemeral mode will be allowed for Prefect Server." ,
131
+ alias = "PREFECT_SERVER_ALLOW_EPHEMERAL_MODE" ,
132
+ )
133
+
122
134
_prefect_context : contextmanager = None
123
135
124
136
@field_validator ("home_path" , mode = "before" )
@@ -145,7 +157,11 @@ def _apply_prefect_settings(self):
145
157
self ._prefect_context .__exit__ (None , None , None )
146
158
self ._prefect_context = None
147
159
148
- settings_map = {"prefect_log_level" : prefect .settings .PREFECT_LOGGING_LEVEL }
160
+ settings_map = {
161
+ "prefect_log_level" : prefect .settings .PREFECT_LOGGING_LEVEL ,
162
+ "prefect_api_url" : prefect .settings .PREFECT_API_URL ,
163
+ "prefect_server_allow_ephemeral_mode" : prefect .settings .PREFECT_SERVER_ALLOW_EPHEMERAL_MODE ,
164
+ }
149
165
150
166
prefect_settings = {}
151
167
You can’t perform that action at this time.
0 commit comments