How to set a parameter within RunConfig to required #21580
Answered
by
garethbrickman
eliu-fracta
asked this question in
Q&A
-
for the code below, if I set CleanedDataConfig's file_path to ..., it will error out. How can I properly configure it so that the job will require file_path as an input?
|
Beta Was this translation helpful? Give feedback.
Answered by
garethbrickman
May 6, 2024
Replies: 1 comment 5 replies
-
The value for file_path would have to be typed as a string, so For making it required, the Field class has an is_required parameter |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It will automatically be required in order for the config to be valid for execution otherwise a hard error will occur. Here's how it looks when attempting to materialize within the Dagster UI: