Nadav
09/02/2021, 6:05 PMKevin Kho
Nadav
09/02/2021, 6:10 PMKevin Kho
Kevin Kho
Brad I
09/03/2021, 5:23 AMKevin Kho
Zach Angell
Brad I
09/03/2021, 3:08 PMprefect agent kubernetes install
• No custom job template
• IMAGE_PULL_POLICY
is left blank (assume that means IfNotPresent
)
• We are running the flow both from the UI and API
• In the UI, select the flow, click ‘Run’, setting our run inputs, and clicking ‘Run’
• API is similar, sending the input dictionary to the create_flow_run
mutation
• The KubernetesRun
config is set on registration and everything works except the image_pull_policy
flagZach Angell
create_flow_run
mutation you're using? (Feel free to DM instead of post in the thread)Zach Angell
run_config
in create_flow_run
, I would expect it to respect the image_pull_policy
argumentBrad I
09/03/2021, 7:48 PMconst query = gql`
mutation ($input: create_flow_run_input!) {
create_flow_run(input: $input) {
id
}
}
`;
const variables = {
input,
};
Where the input is defined like:
parameters = {
some_var: 42,
uuid: fileId,
}
Brad I
09/03/2021, 7:50 PMZach Angell
In general, we don’t really want our users to have to configure every run_config parameter and should just use the default that the flow was registered withUnderstood and 100% agree that is how the system should work. For the UI, we need to add a new field. I've opened an issue here https://github.com/PrefectHQ/ui/issues/1040. For the API, I can do some further testing. Could you DM me the ID of your Flow and Flow Group? Both can be found in the "Flow" page -> "Overview" tab -> "Details" option on the "Overview" tile"
Zach Angell
run_config
is provided as an input to create_flow_run
, Prefect should use the Flow's run config. I've also confirmed the Flow Group does not have a run_config
that would be overriding this behavior.
The UI definitely has a bug, but I'm a bit perplexed on the API behaviorBrad I
09/10/2021, 12:40 PM