Bouke Krom
08/30/2021, 7:58 AMsubmittable
in the docs... Any pointers?Wilson Bilkovich
08/30/2021, 1:16 PM100
not 10.. I don’t see the text ‘submittable’ anywhere in the client or server repos; can you paste an exact string?Bouke Krom
08/30/2021, 1:20 PMBouke Krom
08/30/2021, 1:21 PMBouke Krom
08/30/2021, 1:22 PMWilson Bilkovich
08/30/2021, 1:25 PMquery AgentSubmittableRuns {
flow_run (where: {state: {_eq: "Scheduled"}}) {
id
name
state
labels
scheduled_start_time
version
flow_id
}
}
…looks to be the query it runs to get the submittable jobs, which doesn’t impose a limitWilson Bilkovich
08/30/2021, 1:38 PMLate
icon? Are the rest of them shown there by any chance?Bouke Krom
08/30/2021, 1:43 PMlate
flowsWilson Bilkovich
08/30/2021, 1:45 PMKevin Kho
Bouke Krom
08/30/2021, 2:20 PMKevin Kho
Bouke Krom
08/30/2021, 2:48 PMKevin Kho
Bouke Krom
08/31/2021, 9:34 AM10
. What is the right course of action @Kevin Kho @Jeremiah?Kevin Kho
Kevin Kho
config.toml
(in the server repo), something like max_runs_to_schedule_per_flow
• replacing the hard coded 10 with this settingKevin Kho
Bouke Krom
08/31/2021, 2:25 PMconfig.toml
is used etc.
Just to check though:
• To me it would make more sense if there is a 'time to schedule into the future' (e.g. 1 week ahead or something). This complicates the fix but it could remove the difference in scheduling between 1 or several flows. Is there any appetite for that?
some people take down their infrastructureNot sure what you mean. Would there be a downside to increasing the default of 10? Since I'm the first one running into this for 13 months it probably doesnt make a difference to anyone 🤔
Kevin Kho
start_dates
attached to schedulesKevin Kho
Bouke Krom
08/31/2021, 2:32 PMBouke Krom
08/31/2021, 2:41 PMZach Angell
config.toml
and replacing the hard coded setting. I'd be prefer to keep the default at 10 for consistency too.
More advanced changes than that are very tricky because Prefect Cloud also uses some of Server's scheduling logic. For bigger changes, you might be better off writing your own scheduling service or using a custom Server version.Bouke Krom
08/31/2021, 3:47 PMKevin Kho
config.toml
is probably the better approach anywayBouke Krom
08/31/2021, 3:56 PMKevin Kho
Kevin Kho
Marvin
08/31/2021, 3:57 PMBouke Krom
08/31/2021, 3:57 PMBouke Krom
08/31/2021, 4:51 PMWilson Bilkovich
08/31/2021, 5:02 PMKevin Kho
config.toml
is more important right?Wilson Bilkovich
08/31/2021, 6:16 PMWilson Bilkovich
08/31/2021, 6:16 PMNone
in that case, as opposed to something like ''
Bouke Krom
09/01/2021, 6:48 AMMaybe a second test that asserts that the default is 10?The first 'happy flow' tests for 10 scheduled runs (hardcoded), so that will fail if the default (in config) is changed
Nothing configured in theHmm then things will fail. An empty value is not accepted by the toml decoder. If you leave out the value altogether you'd get aconfig.toml
BoxKeyError
on accessing the attribute from the config object. Configuration values are used everywhere without try/excepting
for that case so I assume failing is the way to go.Bouke Krom
09/01/2021, 7:13 AMZach Angell
Bouke Krom
09/01/2021, 1:10 PMZach Angell
Zach Angell
Jeremiah
Bouke Krom
09/06/2021, 10:28 AMKarim Benjelloun
09/06/2021, 2:51 PM