@@ -25,37 +25,37 @@ load_flow(flow_run: FlowRun) -> Flow[..., Any]
25
25
load_flow_and_flow_run(flow_run_id: UUID ) -> tuple[FlowRun, Flow[... , Any]]
26
26
```
27
27
28
- ### ` run_flow_sync ` <sup ><a href = " https://github.com/PrefectHQ/prefect/blob/main/src/prefect/flow_engine.py#L1378 " target = " _blank" ><Icon icon = " github" style = " width: 14px; height: 14px;" /></a ></sup >
28
+ ### ` run_flow_sync ` <sup ><a href = " https://github.com/PrefectHQ/prefect/blob/main/src/prefect/flow_engine.py#L1376 " target = " _blank" ><Icon icon = " github" style = " width: 14px; height: 14px;" /></a ></sup >
29
29
30
30
``` python
31
31
run_flow_sync(flow: Flow[P, R], flow_run: Optional[FlowRun] = None , parameters: Optional[Dict[str , Any]] = None , wait_for: Optional[Iterable[PrefectFuture[Any]]] = None , return_type: Literal[' state' , ' result' ] = ' result' , context: Optional[dict[str , Any]] = None ) -> Union[R, State, None ]
32
32
```
33
33
34
- ### ` run_flow_async ` <sup ><a href = " https://github.com/PrefectHQ/prefect/blob/main/src/prefect/flow_engine.py#L1402 " target = " _blank" ><Icon icon = " github" style = " width: 14px; height: 14px;" /></a ></sup >
34
+ ### ` run_flow_async ` <sup ><a href = " https://github.com/PrefectHQ/prefect/blob/main/src/prefect/flow_engine.py#L1400 " target = " _blank" ><Icon icon = " github" style = " width: 14px; height: 14px;" /></a ></sup >
35
35
36
36
``` python
37
37
run_flow_async(flow: Flow[P, R], flow_run: Optional[FlowRun] = None , parameters: Optional[Dict[str , Any]] = None , wait_for: Optional[Iterable[PrefectFuture[Any]]] = None , return_type: Literal[' state' , ' result' ] = ' result' , context: Optional[dict[str , Any]] = None ) -> Union[R, State, None ]
38
38
```
39
39
40
- ### ` run_generator_flow_sync ` <sup ><a href = " https://github.com/PrefectHQ/prefect/blob/main/src/prefect/flow_engine.py#L1426 " target = " _blank" ><Icon icon = " github" style = " width: 14px; height: 14px;" /></a ></sup >
40
+ ### ` run_generator_flow_sync ` <sup ><a href = " https://github.com/PrefectHQ/prefect/blob/main/src/prefect/flow_engine.py#L1424 " target = " _blank" ><Icon icon = " github" style = " width: 14px; height: 14px;" /></a ></sup >
41
41
42
42
``` python
43
43
run_generator_flow_sync(flow: Flow[P, R], flow_run: Optional[FlowRun] = None , parameters: Optional[Dict[str , Any]] = None , wait_for: Optional[Iterable[PrefectFuture[Any]]] = None , return_type: Literal[' state' , ' result' ] = ' result' , context: Optional[dict[str , Any]] = None ) -> Generator[R, None , None ]
44
44
```
45
45
46
- ### ` run_generator_flow_async ` <sup ><a href = " https://github.com/PrefectHQ/prefect/blob/main/src/prefect/flow_engine.py#L1467 " target = " _blank" ><Icon icon = " github" style = " width: 14px; height: 14px;" /></a ></sup >
46
+ ### ` run_generator_flow_async ` <sup ><a href = " https://github.com/PrefectHQ/prefect/blob/main/src/prefect/flow_engine.py#L1465 " target = " _blank" ><Icon icon = " github" style = " width: 14px; height: 14px;" /></a ></sup >
47
47
48
48
``` python
49
49
run_generator_flow_async(flow: Flow[P, R], flow_run: Optional[FlowRun] = None , parameters: Optional[Dict[str , Any]] = None , wait_for: Optional[Iterable[PrefectFuture[R]]] = None , return_type: Literal[' state' , ' result' ] = ' result' , context: Optional[dict[str , Any]] = None ) -> AsyncGenerator[R, None ]
50
50
```
51
51
52
- ### ` run_flow ` <sup ><a href = " https://github.com/PrefectHQ/prefect/blob/main/src/prefect/flow_engine.py#L1510 " target = " _blank" ><Icon icon = " github" style = " width: 14px; height: 14px;" /></a ></sup >
52
+ ### ` run_flow ` <sup ><a href = " https://github.com/PrefectHQ/prefect/blob/main/src/prefect/flow_engine.py#L1508 " target = " _blank" ><Icon icon = " github" style = " width: 14px; height: 14px;" /></a ></sup >
53
53
54
54
``` python
55
55
run_flow(flow: Flow[P, R], flow_run: Optional[FlowRun] = None , parameters: Optional[Dict[str , Any]] = None , wait_for: Optional[Iterable[PrefectFuture[R]]] = None , return_type: Literal[' state' , ' result' ] = ' result' , error_logger: Optional[logging.Logger] = None , context: Optional[dict[str , Any]] = None ) -> R | State | None | Coroutine[Any, Any, R | State | None ] | Generator[R, None , None ] | AsyncGenerator[R, None ]
56
56
```
57
57
58
- ### ` run_flow_in_subprocess ` <sup ><a href = " https://github.com/PrefectHQ/prefect/blob/main/src/prefect/flow_engine.py#L1583 " target = " _blank" ><Icon icon = " github" style = " width: 14px; height: 14px;" /></a ></sup >
58
+ ### ` run_flow_in_subprocess ` <sup ><a href = " https://github.com/PrefectHQ/prefect/blob/main/src/prefect/flow_engine.py#L1581 " target = " _blank" ><Icon icon = " github" style = " width: 14px; height: 14px;" /></a ></sup >
59
59
60
60
``` python
61
61
run_flow_in_subprocess(flow: ' Flow[..., Any]' , flow_run: ' FlowRun | None' = None , parameters: dict[str , Any] | None = None , wait_for: Iterable[PrefectFuture[Any]] | None = None , context: dict[str , Any] | None = None ) -> multiprocessing.context.SpawnProcess
@@ -127,7 +127,7 @@ state(self) -> State
127
127
begin_run(self ) -> State
128
128
```
129
129
130
- #### ` call_flow_fn ` <sup ><a href = " https://github.com/PrefectHQ/prefect/blob/main/src/prefect/flow_engine.py#L789 " target = " _blank" ><Icon icon = " github" style = " width: 14px; height: 14px;" /></a ></sup >
130
+ #### ` call_flow_fn ` <sup ><a href = " https://github.com/PrefectHQ/prefect/blob/main/src/prefect/flow_engine.py#L788 " target = " _blank" ><Icon icon = " github" style = " width: 14px; height: 14px;" /></a ></sup >
131
131
132
132
``` python
133
133
call_flow_fn(self ) -> Union[R, Coroutine[Any, Any, R]]
@@ -179,7 +179,7 @@ handle_success(self, result: R) -> R
179
179
handle_timeout(self , exc: TimeoutError ) -> None
180
180
```
181
181
182
- #### ` initialize_run ` <sup ><a href = " https://github.com/PrefectHQ/prefect/blob/main/src/prefect/flow_engine.py#L682 " target = " _blank" ><Icon icon = " github" style = " width: 14px; height: 14px;" /></a ></sup >
182
+ #### ` initialize_run ` <sup ><a href = " https://github.com/PrefectHQ/prefect/blob/main/src/prefect/flow_engine.py#L681 " target = " _blank" ><Icon icon = " github" style = " width: 14px; height: 14px;" /></a ></sup >
183
183
184
184
``` python
185
185
initialize_run(self )
@@ -212,7 +212,7 @@ then no flow run is returned.
212
212
result(self , raise_on_failure: bool = True ) -> ' Union[R, State, None]'
213
213
```
214
214
215
- #### ` run_context ` <sup ><a href = " https://github.com/PrefectHQ/prefect/blob/main/src/prefect/flow_engine.py#L770 " target = " _blank" ><Icon icon = " github" style = " width: 14px; height: 14px;" /></a ></sup >
215
+ #### ` run_context ` <sup ><a href = " https://github.com/PrefectHQ/prefect/blob/main/src/prefect/flow_engine.py#L769 " target = " _blank" ><Icon icon = " github" style = " width: 14px; height: 14px;" /></a ></sup >
216
216
217
217
``` python
218
218
run_context(self )
@@ -233,13 +233,13 @@ set_state(self, state: State, force: bool = False) -> State
233
233
setup_run_context(self , client: Optional[SyncPrefectClient] = None )
234
234
```
235
235
236
- #### ` start ` <sup ><a href = " https://github.com/PrefectHQ/prefect/blob/main/src/prefect/flow_engine.py#L758 " target = " _blank" ><Icon icon = " github" style = " width: 14px; height: 14px;" /></a ></sup >
236
+ #### ` start ` <sup ><a href = " https://github.com/PrefectHQ/prefect/blob/main/src/prefect/flow_engine.py#L757 " target = " _blank" ><Icon icon = " github" style = " width: 14px; height: 14px;" /></a ></sup >
237
237
238
238
``` python
239
239
start(self ) -> Generator[None , None , None ]
240
240
```
241
241
242
- ### ` AsyncFlowRunEngine ` <sup ><a href = " https://github.com/PrefectHQ/prefect/blob/main/src/prefect/flow_engine.py#L807 " target = " _blank" ><Icon icon = " github" style = " width: 14px; height: 14px;" /></a ></sup >
242
+ ### ` AsyncFlowRunEngine ` <sup ><a href = " https://github.com/PrefectHQ/prefect/blob/main/src/prefect/flow_engine.py#L806 " target = " _blank" ><Icon icon = " github" style = " width: 14px; height: 14px;" /></a ></sup >
243
243
244
244
245
245
Async version of the flow run engine.
@@ -250,13 +250,13 @@ not being fully asyncified.
250
250
251
251
** Methods:**
252
252
253
- #### ` begin_run ` <sup ><a href = " https://github.com/PrefectHQ/prefect/blob/main/src/prefect/flow_engine.py#L864 " target = " _blank" ><Icon icon = " github" style = " width: 14px; height: 14px;" /></a ></sup >
253
+ #### ` begin_run ` <sup ><a href = " https://github.com/PrefectHQ/prefect/blob/main/src/prefect/flow_engine.py#L863 " target = " _blank" ><Icon icon = " github" style = " width: 14px; height: 14px;" /></a ></sup >
254
254
255
255
``` python
256
256
begin_run(self ) -> State
257
257
```
258
258
259
- #### ` call_flow_fn ` <sup ><a href = " https://github.com/PrefectHQ/prefect/blob/main/src/prefect/flow_engine.py#L1366 " target = " _blank" ><Icon icon = " github" style = " width: 14px; height: 14px;" /></a ></sup >
259
+ #### ` call_flow_fn ` <sup ><a href = " https://github.com/PrefectHQ/prefect/blob/main/src/prefect/flow_engine.py#L1364 " target = " _blank" ><Icon icon = " github" style = " width: 14px; height: 14px;" /></a ></sup >
260
260
261
261
``` python
262
262
call_flow_fn(self ) -> Coroutine[Any, Any, R]
@@ -266,49 +266,49 @@ Convenience method to call the flow function. Returns a coroutine if the
266
266
flow is async.
267
267
268
268
269
- #### ` call_hooks ` <sup ><a href = " https://github.com/PrefectHQ/prefect/blob/main/src/prefect/flow_engine.py#L1107 " target = " _blank" ><Icon icon = " github" style = " width: 14px; height: 14px;" /></a ></sup >
269
+ #### ` call_hooks ` <sup ><a href = " https://github.com/PrefectHQ/prefect/blob/main/src/prefect/flow_engine.py#L1106 " target = " _blank" ><Icon icon = " github" style = " width: 14px; height: 14px;" /></a ></sup >
270
270
271
271
``` python
272
272
call_hooks(self , state: Optional[State] = None ) -> None
273
273
```
274
274
275
- #### ` client ` <sup ><a href = " https://github.com/PrefectHQ/prefect/blob/main/src/prefect/flow_engine.py#L820 " target = " _blank" ><Icon icon = " github" style = " width: 14px; height: 14px;" /></a ></sup >
275
+ #### ` client ` <sup ><a href = " https://github.com/PrefectHQ/prefect/blob/main/src/prefect/flow_engine.py#L819 " target = " _blank" ><Icon icon = " github" style = " width: 14px; height: 14px;" /></a ></sup >
276
276
277
277
``` python
278
278
client(self ) -> PrefectClient
279
279
```
280
280
281
- #### ` create_flow_run ` <sup ><a href = " https://github.com/PrefectHQ/prefect/blob/main/src/prefect/flow_engine.py#L1074 " target = " _blank" ><Icon icon = " github" style = " width: 14px; height: 14px;" /></a ></sup >
281
+ #### ` create_flow_run ` <sup ><a href = " https://github.com/PrefectHQ/prefect/blob/main/src/prefect/flow_engine.py#L1073 " target = " _blank" ><Icon icon = " github" style = " width: 14px; height: 14px;" /></a ></sup >
282
282
283
283
``` python
284
284
create_flow_run(self , client: PrefectClient) -> FlowRun
285
285
```
286
286
287
- #### ` handle_crash ` <sup ><a href = " https://github.com/PrefectHQ/prefect/blob/main/src/prefect/flow_engine.py#L1012 " target = " _blank" ><Icon icon = " github" style = " width: 14px; height: 14px;" /></a ></sup >
287
+ #### ` handle_crash ` <sup ><a href = " https://github.com/PrefectHQ/prefect/blob/main/src/prefect/flow_engine.py#L1011 " target = " _blank" ><Icon icon = " github" style = " width: 14px; height: 14px;" /></a ></sup >
288
288
289
289
``` python
290
290
handle_crash(self , exc: BaseException ) -> None
291
291
```
292
292
293
- #### ` handle_exception ` <sup ><a href = " https://github.com/PrefectHQ/prefect/blob/main/src/prefect/flow_engine.py#L962 " target = " _blank" ><Icon icon = " github" style = " width: 14px; height: 14px;" /></a ></sup >
293
+ #### ` handle_exception ` <sup ><a href = " https://github.com/PrefectHQ/prefect/blob/main/src/prefect/flow_engine.py#L961 " target = " _blank" ><Icon icon = " github" style = " width: 14px; height: 14px;" /></a ></sup >
294
294
295
295
``` python
296
296
handle_exception(self , exc: Exception , msg: Optional[str ] = None , result_store: Optional[ResultStore] = None ) -> State
297
297
```
298
298
299
- #### ` handle_success ` <sup ><a href = " https://github.com/PrefectHQ/prefect/blob/main/src/prefect/flow_engine.py#L945 " target = " _blank" ><Icon icon = " github" style = " width: 14px; height: 14px;" /></a ></sup >
299
+ #### ` handle_success ` <sup ><a href = " https://github.com/PrefectHQ/prefect/blob/main/src/prefect/flow_engine.py#L944 " target = " _blank" ><Icon icon = " github" style = " width: 14px; height: 14px;" /></a ></sup >
300
300
301
301
``` python
302
302
handle_success(self , result: R) -> R
303
303
```
304
304
305
- #### ` handle_timeout ` <sup ><a href = " https://github.com/PrefectHQ/prefect/blob/main/src/prefect/flow_engine.py#L993 " target = " _blank" ><Icon icon = " github" style = " width: 14px; height: 14px;" /></a ></sup >
305
+ #### ` handle_timeout ` <sup ><a href = " https://github.com/PrefectHQ/prefect/blob/main/src/prefect/flow_engine.py#L992 " target = " _blank" ><Icon icon = " github" style = " width: 14px; height: 14px;" /></a ></sup >
306
306
307
307
``` python
308
308
handle_timeout(self , exc: TimeoutError ) -> None
309
309
```
310
310
311
- #### ` initialize_run ` <sup ><a href = " https://github.com/PrefectHQ/prefect/blob/main/src/prefect/flow_engine.py#L1251 " target = " _blank" ><Icon icon = " github" style = " width: 14px; height: 14px;" /></a ></sup >
311
+ #### ` initialize_run ` <sup ><a href = " https://github.com/PrefectHQ/prefect/blob/main/src/prefect/flow_engine.py#L1249 " target = " _blank" ><Icon icon = " github" style = " width: 14px; height: 14px;" /></a ></sup >
312
312
313
313
``` python
314
314
initialize_run(self )
@@ -317,7 +317,7 @@ initialize_run(self)
317
317
Enters a client context and creates a flow run if needed.
318
318
319
319
320
- #### ` load_subflow_run ` <sup ><a href = " https://github.com/PrefectHQ/prefect/blob/main/src/prefect/flow_engine.py#L1025 " target = " _blank" ><Icon icon = " github" style = " width: 14px; height: 14px;" /></a ></sup >
320
+ #### ` load_subflow_run ` <sup ><a href = " https://github.com/PrefectHQ/prefect/blob/main/src/prefect/flow_engine.py#L1024 " target = " _blank" ><Icon icon = " github" style = " width: 14px; height: 14px;" /></a ></sup >
321
321
322
322
``` python
323
323
load_subflow_run(self , parent_task_run: TaskRun, client: PrefectClient, context: FlowRunContext) -> Union[FlowRun, None ]
@@ -335,19 +335,19 @@ If no existing flow run is found, or if the subflow should be rerun,
335
335
then no flow run is returned.
336
336
337
337
338
- #### ` result ` <sup ><a href = " https://github.com/PrefectHQ/prefect/blob/main/src/prefect/flow_engine.py#L920 " target = " _blank" ><Icon icon = " github" style = " width: 14px; height: 14px;" /></a ></sup >
338
+ #### ` result ` <sup ><a href = " https://github.com/PrefectHQ/prefect/blob/main/src/prefect/flow_engine.py#L919 " target = " _blank" ><Icon icon = " github" style = " width: 14px; height: 14px;" /></a ></sup >
339
339
340
340
``` python
341
341
result(self , raise_on_failure: bool = True ) -> ' Union[R, State, None]'
342
342
```
343
343
344
- #### ` run_context ` <sup ><a href = " https://github.com/PrefectHQ/prefect/blob/main/src/prefect/flow_engine.py#L1347 " target = " _blank" ><Icon icon = " github" style = " width: 14px; height: 14px;" /></a ></sup >
344
+ #### ` run_context ` <sup ><a href = " https://github.com/PrefectHQ/prefect/blob/main/src/prefect/flow_engine.py#L1345 " target = " _blank" ><Icon icon = " github" style = " width: 14px; height: 14px;" /></a ></sup >
345
345
346
346
``` python
347
347
run_context(self )
348
348
```
349
349
350
- #### ` set_state ` <sup ><a href = " https://github.com/PrefectHQ/prefect/blob/main/src/prefect/flow_engine.py#L903 " target = " _blank" ><Icon icon = " github" style = " width: 14px; height: 14px;" /></a ></sup >
350
+ #### ` set_state ` <sup ><a href = " https://github.com/PrefectHQ/prefect/blob/main/src/prefect/flow_engine.py#L902 " target = " _blank" ><Icon icon = " github" style = " width: 14px; height: 14px;" /></a ></sup >
351
351
352
352
``` python
353
353
set_state(self , state: State, force: bool = False ) -> State
@@ -356,13 +356,13 @@ set_state(self, state: State, force: bool = False) -> State
356
356
357
357
358
358
359
- #### ` setup_run_context ` <sup ><a href = " https://github.com/PrefectHQ/prefect/blob/main/src/prefect/flow_engine.py#L1164 " target = " _blank" ><Icon icon = " github" style = " width: 14px; height: 14px;" /></a ></sup >
359
+ #### ` setup_run_context ` <sup ><a href = " https://github.com/PrefectHQ/prefect/blob/main/src/prefect/flow_engine.py#L1163 " target = " _blank" ><Icon icon = " github" style = " width: 14px; height: 14px;" /></a ></sup >
360
360
361
361
``` python
362
362
setup_run_context(self , client: Optional[PrefectClient] = None )
363
363
```
364
364
365
- #### ` start ` <sup ><a href = " https://github.com/PrefectHQ/prefect/blob/main/src/prefect/flow_engine.py#L1335 " target = " _blank" ><Icon icon = " github" style = " width: 14px; height: 14px;" /></a ></sup >
365
+ #### ` start ` <sup ><a href = " https://github.com/PrefectHQ/prefect/blob/main/src/prefect/flow_engine.py#L1333 " target = " _blank" ><Icon icon = " github" style = " width: 14px; height: 14px;" /></a ></sup >
366
366
367
367
``` python
368
368
start(self ) -> AsyncGenerator[None , None ]
0 commit comments