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

R Lucas

02/12/2023, 2:03 PM
Hello, What is the easiest way to silence below warning when using FreshnessPolicies ?
Copy code
C:\Users\*****\AppData\Local\Programs\Python\Python310\lib\site-packages\dagster\_serdes\serdes.py:311: ExperimentalWarning: "FreshnessPolicy" is an experimental class. It may break in future versions, even between dot releases. To mute warnings for experimental functionality, invoke warnings.filterwarnings("ignore", category=dagster.ExperimentalWarning) or use one of the other methods described at <https://docs.python.org/3/library/warnings.html#describing-warning-filters>.
dagster bot responded by community 1
d

Dusty Shapiro

02/12/2023, 2:14 PM
You can define an environment variable to ignore warnings
Copy code
export PYTHONWARNINGS="ignore"
Copy code
$ python
>>> import warnings
>>> warnings.warn('my warning')
>>>
👍 1
r

R Lucas

02/12/2023, 5:51 PM
Thank you very much !
12 Views