LP
03/17/2023, 10:47 AMdagster 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.
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()