E Li
11/04/2021, 5:11 PMKevin Kho
Kevin Kho
E Li
11/04/2021, 5:20 PME Li
11/04/2021, 5:20 PMKevin Kho
E Li
11/04/2021, 5:24 PMKevin Kho
test = Parameter("test", required=True)
if you go to the UI, you have to supply a value to test
because there is no default value set. But if you do:
test = Parameter("test", default=1)
then you don’t need to supply in the UI because it can use the default.
So it looks like the error is saying that the parameter is None
? This is what making me wonder if there is a value supplied
Also, can I see the definition of read_file
? Is that a task?E Li
11/04/2021, 5:40 PMKevin Kho
read_file
task will read in the json fileE Li
11/04/2021, 5:47 PMKevin Kho
E Li
11/04/2021, 8:19 PMKevin Kho
E Li
11/04/2021, 8:36 PMKevin Kho
Kevin Kho
E Li
11/04/2021, 8:40 PMKevin Kho
LocalRun
to specify the working directoryE Li
11/04/2021, 8:47 PME Li
11/04/2021, 8:48 PME Li
11/04/2021, 8:48 PMKevin Kho
working_dir
should be defined on the Flow side. In you flow,
from prefect.run_configs import LocalRun
tasks....
with Flow(...) as flow:
tasks....
flow.run_config = LocalRun(working_dir="/path/to/working-directory")
and then register this. When the agent picks up this Flow, it will run the Flow in that working directory. I think this should help you locate the files on the machine.Kevin Kho
WinError
?E Li
11/04/2021, 9:00 PME Li
11/04/2021, 9:00 PMKevin Kho
Kevin Kho
E Li
11/04/2021, 9:10 PME Li
11/04/2021, 9:10 PMKevin Kho
prefect agent local start
The agent will have the hostname by default also. You can also remove the label from the Flow but for LocalAgent, it would be good to have labels on both Flow and agentE Li
11/04/2021, 9:17 PME Li
11/05/2021, 6:10 PMKevin Kho
with Flow(...) as flow:
....
Kevin Kho
E Li
11/05/2021, 6:16 PMKevin Kho
E Li
11/05/2021, 6:18 PME Li
11/05/2021, 6:18 PME Li
11/05/2021, 6:18 PMKevin Kho
E Li
11/05/2021, 6:21 PME Li
11/05/2021, 6:21 PME Li
11/05/2021, 6:23 PME Li
11/05/2021, 6:23 PME Li
11/05/2021, 6:25 PMKevin Kho
Kevin Kho
E Li
11/05/2021, 6:27 PMKevin Kho
batch_name
, xml_path
, xml_config_file
, grid_config
?Kevin Kho
E Li
11/05/2021, 6:33 PMAnna Geller
E Li
11/05/2021, 6:36 PMKevin Kho
E Li
11/05/2021, 6:41 PMAnna Geller
prefect agent local start
E Li
11/05/2021, 6:44 PMKevin Kho
E Li
11/05/2021, 6:47 PME Li
11/05/2021, 6:47 PMKevin Kho
E Li
11/05/2021, 6:52 PMKevin Kho
E Li
11/05/2021, 6:56 PMKevin Kho
E Li
11/05/2021, 6:57 PME Li
11/05/2021, 10:02 PMKevin Kho
Kevin Kho
query Api {
api {
backend
mode
version
core_version
release_timestamp
}
}
E Li
11/05/2021, 10:11 PM