https://dagster.io/ logo
#ask-community
Title
# ask-community
f

Fred Benton

05/12/2023, 6:56 PM
I see several examples of using the environment to define a resource (like in line 240 of this file). Can I do something like that to spec out an asset job to define a resource? Ex: How can I spec out a job to use only the "smoketest" version of this resource?
Copy code
pipeline_environment = {
    "production": {
        "target_district": "merryville",
        "source_schema": "standard_rise_merryville",
        "output_schema": "dev_rise_dagster",
    },
    "smoketest": {
        "target_district": "smoketest",
        "source_schema": "dev_rise_dagster_smoketest",
        "output_schema": "dev_rise_dagster_smoketest",
    },
}
Thanks in advance
s

sean

05/12/2023, 7:47 PM
Hi Fred, can you elaborate on what you mean by “spec out an asset job to define a resource”? Resources are defined outside of any job.
f

Fred Benton

05/12/2023, 8:35 PM
Can I define a job that always takes in the "smoketest" version of the pipeline_environment resource above?
I want my colleagues to be able to run a pre-defined job knowing that it will run the pipeline in "testing mode"