HomeElementl

feat: add flag to disable all warnings when running dagit

Description

feat: add flag to disable all warnings when running dagit

Summary:
A spew of experimental errors always pops up when running dagit,
which can be a little verbose.

Although this can be supressed by adding "warnings.simplefilter" to your
user code, it sounds tedious to put that all over the place.

Instead, add a flag to suprress all warnings in the user code. Unfortunately,
using a context manager is not enough since repository locations are loaded
in individual threads, and warning supression is not thread safe.
https://docs.python.org/3/library/warnings.html#available-context-managers

To get around this, we set the PYTHONWARNINGS environment variable.

Test Plan: run dagit, see no experimental errors

Reviewers: sandyryza, alangenfeld, dgibson

Reviewed By: sandyryza

Differential Revision: https://dagster.phacility.com/D8349

Details

Provenance
rexledesmaAuthored on Jun 11 2021, 4:02 PM
Reviewer
sandyryza
Differential Revision
D8349: feat: add flag to disable all warnings when running dagit
Parents
R1:288c4c072ea4: add option to skip uploading empty files to improve perf with minio
Branches
Unknown
Tags
Unknown