I see several examples of using the environment to...
# ask-community
f
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
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
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"