Horatiu Bota

    Horatiu Bota

    1 year ago
    hi guys, thanks for the awesome tool! missing something really simple πŸ˜… is there a way to access run parameters in the target template? i.e., how do i access the
    company_name
    run parameter when setting the target below (note, this doesn't work because of
    dict object has no attribute company_name
    ):
    @task(target="{parameters.company_name}/{today}-{task_name}", ...)
    i tried
    parameters.get("company_name")
    instead but still no luck. must be a really simple thing i'm missing (sorry for the spam)
    Kevin Kho

    Kevin Kho

    1 year ago
    Hey @Horatiu Bota, did you see this example?
    And no worries about posting. All questions are welcome πŸ™‚
    Horatiu Bota

    Horatiu Bota

    1 year ago
    ah, thanks a lot! i tried that and it does work, but i thought that maybe there's a direct way to specify it in the template string (without a custom function)
    Kevin Kho

    Kevin Kho

    1 year ago
    Ah I don’t think there is another syntax for that
    Horatiu Bota

    Horatiu Bota

    1 year ago
    ok, thanks a lot! (side note: i'm loving prefect πŸ™‚ )
    Kevin Kho

    Kevin Kho

    1 year ago
    Glad to hear πŸ‘