Skip to content

resources

DagsterDeployment

Bases: StrEnum

Source code in packages/common/src/bag3d/common/resources/__init__.py
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
class DagsterDeployment(StrEnum):
    DEFAULT = "default"
    PRODUCTION = "production"
    FEATURE = "feature"
    PYTEST = "pytest"
    STAGING = "staging"

    @classmethod
    def env_configured_deployments(cls) -> frozenset[str]:
        """Return deployment types that use environment variable configuration."""
        return frozenset(
            {
                cls.PRODUCTION,
                cls.PYTEST,
                cls.FEATURE,
                cls.STAGING,
            }
        )

env_configured_deployments() classmethod

Return deployment types that use environment variable configuration.

Source code in packages/common/src/bag3d/common/resources/__init__.py
43
44
45
46
47
48
49
50
51
52
53
@classmethod
def env_configured_deployments(cls) -> frozenset[str]:
    """Return deployment types that use environment variable configuration."""
    return frozenset(
        {
            cls.PRODUCTION,
            cls.PYTEST,
            cls.FEATURE,
            cls.STAGING,
        }
    )