Skip to content

Is using jinja2 for dynamically generating user code an antipattern? #24316

Answered by cmpadden
C-Loftus asked this question in Q&A
Discussion options

You must be logged in to vote

Hi Colton, nice to meet you! Fellow Colton here -

Your approach is interesting, and does solve the problem, but I think there are a few considerations in which dynamic graphs may have some benefit, and I'd encourage you to explore them.

Like you said, your current approach is a two-step process. First, you generate the files, and then you can orchestrate them using Dagster. I believe this introduces an unnecessary overhead and forces the user to require additional maintenance of these files, when they could likely be generated dynamically in Dagster itself. You would have the same parameters that you are using to generate the files, however, they will be used as input to your dynamic grap…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@cmpadden
Comment options

Answer selected by C-Loftus
@C-Loftus
Comment options

@cmpadden
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
area: pipeline-design Issues or discussions related to how to model a pipeline in Dagster
2 participants