Hi All, Is there any way we can dynamically get sc...
# ask-community
l
Hi All, Is there any way we can dynamically get scaffold config of a job ? I tried below using the cli command
dagster job scaffold_config -f ~/work/example_repo/repo.py -j my_job --print-only-required
to generate config for a job but it is always leading to an error
dagster._check.CheckError: Failure condition: Do not know how to scaffold None
I want to simulate the button
missing scaffold config
button which comes to the dagit UI under launchpad.
Copy code
import os
from collections import Counter

from dagster import In, file_relative_path, graph, op, repository, job


@op(ins={"word": In(str)}, config_schema={"factor": int})
def multiply_the_word(context, word):
    return word * context.op_config["factor"]


@op(ins={"word": In(str)})
def count_letters(word):
    return dict(Counter(word))


@graph
def example_graph():
    count_letters(multiply_the_word())

@job
def my_job():
    example_graph()
2