prefect.input.run_input
¶
RunInput
¶
Bases: BaseModel
Source code in prefect/input/run_input.py
55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 |
|
load
async
classmethod
¶
Load the run input response from the given key.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
- |
keyset (Keyset
|
the keyset to load the input for |
required |
- |
flow_run_id (UUID
|
the flow run ID to load the input for |
required |
Source code in prefect/input/run_input.py
79 80 81 82 83 84 85 86 87 88 89 90 |
|
save
async
classmethod
¶
Save the run input response to the given key.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
- |
keyset (Keyset
|
the keyset to save the input for |
required |
- |
flow_run_id (UUID
|
the flow run ID to save the input for |
required |
Source code in prefect/input/run_input.py
59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 |
|
with_initial_data
classmethod
¶
Create a new RunInput
subclass with the given initial data as field
defaults.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
- |
kwargs (Any
|
the initial data |
required |
Source code in prefect/input/run_input.py
92 93 94 95 96 97 98 99 100 101 102 103 104 |
|
keyset_from_base_key
¶
Get the keyset for the given base key.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
- |
base_key (str
|
the base key to get the keyset for |
required |
Returns:
Type | Description |
---|---|
Keyset
|
|
Source code in prefect/input/run_input.py
39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
|
keyset_from_paused_state
¶
Get the keyset for the given Paused state.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
- |
state (State
|
the state to get the keyset for |
required |
Source code in prefect/input/run_input.py
23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
|