'Dagster with multiple virtual environments

I have two python scripts prepared for dagster:

dagster1.py
dagster2.py

However, they need to run on a different virtual environment each.

venv1
venv2

Is it possible to run both on the same dagster server? If so, how? If not, what would be the alternative or workaround?



Solution 1:[1]

you can set up your Dagster workspace to load from multiple Python environments by setting the executable_path field in your workspace.yaml file - there's an example here: https://docs.dagster.io/concepts/repositories-workspaces/workspaces#multiple-python-environments

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Daniel Gibson