Filtering API lifecycle warnings
By default, Dagster logs warnings when APIs marked as preview, beta, superseded and deprecated are used in your code base. These warnings can be filtered out using the warnings
module available by default in Python.
import warnings
from dagster import BetaWarning, PreviewWarning, SupersessionWarning
warnings.filterwarnings("ignore", category=BetaWarning)
warnings.filterwarnings("ignore", category=PreviewWarning)
warnings.filterwarnings("ignore", category=SupersessionWarning)
# DeprecationWarning is a Python built-in
warnings.filterwarnings("ignore", category=DeprecationWarning)
Note that Dagster uses the built-in DeprecationWarning
for its deprecated APIs.