Hi! Why is the "Remove extra config" button not en...
# ask-community
g
Hi! Why is the "Remove extra config" button not enabled when dealing with jobs, but is enabled when dealing with graphs? ahhhhhh Maybe I'm doing something wrong (probably). More details in the thread...
😩 1
Without graph
With graph
Here is my code:
Copy code
class OpsConfig(Config):
    env: str = None


test_env = RunConfig(
    ops={
        "pipeline_a": OpsConfig(env="test"),
        "pipeline_b": OpsConfig(env="test")
    }
)

@op(ins={"start": In(Nothing)})
def pipeline_a(config: OpsConfig):
    print(f"pipeline_a in {config.env}")

@op(ins={"start": In(Nothing)})
def pipeline_b(config: OpsConfig):
    print(f"pipeline_b in {config.env}")

@job(name="Testing_Scenario", config=test_env)
def testing_scenario():
    a = pipeline_a()
    b = pipeline_b()


test_env_graph = RunConfig(
    ops={
        "test_graph": {
            "ops": {
                "pipeline_a": OpsConfig(env="test"),
                "pipeline_b": OpsConfig(env="test")
            }
        }
    }
)

@graph
def test_graph():
    a = pipeline_a()
    b = pipeline_b()


@job(name="Testing_Scenario_Graph", config=test_env_graph)
def testing_scenario_graph():
    test_graph()
It is possible to run the ops without any problems, but in the first case it involves changing the launchpad manually and I thought it would work similarly when using
@graph
.