Skip to content

Dynamic execution for solving equations #6017

Answered by OwenKephart
ifethereal asked this question in Q&A
Discussion options

You must be logged in to vote

This should actually be possible (but potentially quite difficult) using conditional branching. Dagster requires that the structure of the DAG be static through the duration of a given run, but the subset of a DAG that gets executed can be determined dynamically at runtime. So conceptually, if you define a DAG that contains all necessary sub-DAGs, then you've sort of solved your problem (if you can determine which sub-DAG you need at runtime). Your graph could start off with an output for each of your variables A, B, C, D. These Outs could be marked with is_required=False, and only fired if they are available for a given run. Downstream ops consuming these outputs would only execute if ea…

Replies: 1 comment 3 replies

Comment options

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

@OwenKephart
Comment options

@ifethereal
Comment options

Answer selected by ifethereal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants