Skip to content

Defining which preset to use for a schedule #2943

Answered by helloworld
blarghmatey asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @blarghmatey,

You can construct a schedule definition using a preset like this:

@daily_schedule(
    start_date=...,
    pipeline_name="my_pipeline",
    solid_selection=preset.solid_selection,
    mode=preset.mode,
    tags_fn_for_date=lambda _: preset.tags,
)
def my_daily_schedule(_date):
    return preset.run_config

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@blarghmatey
Comment options

@blarghmatey
Comment options

@blarghmatey
Comment options

@helloworld
Comment options

Answer selected by helloworld
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