guys, i set the following ```os.environ["PYTHONWAR...
# ask-community
x
guys, i set the following
Copy code
os.environ["PYTHONWARNINGS"] = "ignore"
but i still can see warnings from the log
Copy code
res = conn.execute(run_group_query)
/export/content/lid/apps/dagster-web/i001/libexec/dagster-web_3b298aacc6b7e5bd29d8bd9bb36dfcb367618b6abfa16d967bb355b20119311b/site-packages/graphql/backend/core.py:32: DeprecationWarning: The 'root' alias has been deprecated. Please use 'root_value' instead.
  return execute(schema, document_ast, *args, **kwargs)
/export/content/lid/apps/dagster-web/i001/libexec/dagster-web_3b298aacc6b7e5bd29d8bd9bb36dfcb367618b6abfa16d967bb355b20119311b/site-packages/graphql/backend/core.py:32: DeprecationWarning: The 'context' alias has been deprecated. Please use 'context_value' instead.
  return execute(schema, document_ast, *args, **kwargs)
/export/content/lid/apps/dagster-web/i001/libexec/dagster-web_3b298aacc6b7e5bd29d8bd9bb36dfcb367618b6abfa16d967bb355b20119311b/site-packages/graphql/backend/core.py:32: DeprecationWarning: The 'root' alias has been deprecated. Please use 'root_value' instead.
  return execute(schema, document_ast, *args, **kwargs)
/export/content/lid/apps/dagster-web/i001/libexec/dagster-web_3b298aacc6b7e5bd29d8bd9bb36dfcb367618b6abfa16d967bb355b20119311b/site-packages/graphql/backend/core.py:32: DeprecationWarning: The 'context' alias has been deprecated. Please use 'context_value' instead.
  return execute(schema, document_ast, *args, **kwargs)
/export/content/lid/apps/dagster-web/i001/libexec/dagster-web_3b298aacc6b7e5bd29d8bd9bb36dfcb367618b6abfa16d967bb355b20119311b/site-packages/dagster/core/storage/runs/sql_run_storage.py:407: SADeprecationWarning: Executing a subquery object is deprecated and will raise ObjectNotExecutableError in an upcoming release.  Please execute the underlying select() statement directly.
  res = conn.execute(run_group_query)
r
dagit
has a
--suppress-warnings
flag that might be of interest
x
what that flag does is exactly what the code I posted above :(
r
🤔 hm oddly enough some warnings are being suppressed, but not all of them
Running
dagit
from
dagster/
Copy code
internal-3.8.7 ❯ dagit
Using temporary directory /var/folders/yb/qqcnzws17_v917wn0t26nsfw0000gn/T/tmp2kjbgue3 for storage. This will be removed when dagit exits.
To persist information across sessions, set the environment variable DAGSTER_HOME to a directory to use.

/Users/rexledesma/elementl/dagster/python_modules/dagster-test/dagster_test/toys/sleepy.py:58: ExperimentalWarning: "graph" is an experimental decorator. 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>.
  @graph(
/Users/rexledesma/elementl/dagster/python_modules/dagster-test/dagster_test/toys/sleepy.py:86: ExperimentalWarning: "to_job" is an experimental function. 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>.
  sleepy_pipeline = sleepy.to_job(
/Users/rexledesma/elementl/dagster/python_modules/dagster/dagster/core/definitions/graph.py:456: ExperimentalWarning: "_config_mapping" is an experimental argument to function "ModeDefinition.__new__". 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>.
  ModeDefinition(
/Users/rexledesma/elementl/dagster/python_modules/dagster-test/dagster_test/toys/graph_job_repos.py:34: ExperimentalWarning: "graph" is an experimental decorator. 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>.
  def event_tables():
/Users/rexledesma/elementl/dagster/python_modules/dagster/dagster/core/definitions/decorators/schedule.py:87: ExperimentalWarning: "job" is an experimental argument to function "ScheduleDefinition.__init__". 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>.
  schedule_def = ScheduleDefinition(
/Users/rexledesma/elementl/dagster/python_modules/dagster/dagster/core/definitions/target.py:32: ExperimentalWarning: "to_job" is an experimental function. 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>.
  pipeline = graph.to_job(resource_defs={})
/Users/rexledesma/elementl/dagster/python_modules/dagster-test/dagster_test/toys/graph_job_repos.py:49: ExperimentalWarning: "graph" is an experimental decorator. 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>.
  def event_reports():
/Users/rexledesma/elementl/dagster/python_modules/dagster-test/dagster_test/toys/graph_job_repos.py:54: ExperimentalWarning: "to_job" is an experimental function. 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>.
  @sensor(job=event_reports.to_job(resource_defs={"mode": ResourceDefinition.none_resource()}))
/Users/rexledesma/elementl/dagster/python_modules/dagster/dagster/core/definitions/decorators/sensor.py:98: ExperimentalWarning: "target" is an experimental argument to function "SensorDefinition.__init__". 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>.
  sensor_def = SensorDefinition(
/Users/rexledesma/elementl/dagster/python_modules/dagster-test/dagster_test/toys/graph_job_repos.py:59: ExperimentalWarning: "to_job" is an experimental function. 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>.
  event_reports_dev = event_reports.to_job(resource_defs={"mode": ResourceDefinition.none_resource()})
/Users/rexledesma/elementl/dagster/python_modules/dagster-test/dagster_test/toys/graph_job_repos.py:63: ExperimentalWarning: "graph" is an experimental decorator. 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>.
  def crm_ingest():
/Users/rexledesma/elementl/dagster/python_modules/dagster-test/dagster_test/toys/graph_job_repos.py:72: ExperimentalWarning: "to_job" is an experimental function. 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>.
  crm_ingest_dev = crm_ingest.to_job(resource_defs={"crm": ResourceDefinition.none_resource()})
/Users/rexledesma/elementl/dagster/python_modules/dagster-test/dagster_test/toys/graph_job_repos.py:76: ExperimentalWarning: "to_job" is an experimental function. 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>.
  job=crm_ingest.to_job(
/Users/rexledesma/elementl/dagster/python_modules/dagster-test/dagster_test/toys/graph_job_repos.py:86: ExperimentalWarning: "to_job" is an experimental function. 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>.
  job=crm_ingest.to_job(
/Users/rexledesma/elementl/dagster/python_modules/dagster-test/dagster_test/toys/graph_job_repos.py:96: ExperimentalWarning: "graph" is an experimental decorator. 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>.
  def content_recommender_training():
/Users/rexledesma/elementl/dagster/python_modules/dagster-test/dagster_test/toys/graph_job_repos.py:106: ExperimentalWarning: "to_job" is an experimental function. 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>.
  content_recommender_training_dev = content_recommender_training.to_job(
/Users/rexledesma/elementl/dagster/python_modules/dagster-test/dagster_test/toys/graph_job_repos.py:110: ExperimentalWarning: "to_job" is an experimental function. 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>.
  content_recommender_training_prod = content_recommender_training.to_job(
/Users/rexledesma/elementl/dagster/python_modules/dagster-test/dagster_test/toys/graph_job_repos.py:116: ExperimentalWarning: "graph" is an experimental decorator. 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>.
  def process_customer_data_dump():
/Users/rexledesma/elementl/dagster/python_modules/dagster-test/dagster_test/toys/graph_job_repos.py:123: ExperimentalWarning: "to_job" is an experimental function. 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>.
  process_customer_data_dump_dev = process_customer_data_dump.to_job(
/Users/rexledesma/elementl/dagster/python_modules/dagster/dagster/core/definitions/graph.py:456: ExperimentalWarning: "_config_mapping" is an experimental argument to function "ModeDefinition.__new__". 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>.
  ModeDefinition(
/Users/rexledesma/elementl/dagster/python_modules/dagster/dagster/core/definitions/graph.py:472: ExperimentalWarning: "to_job" is an experimental function. 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>.
  return self.to_job()
Loading repository...
Serving on <http://127.0.0.1:3000> in process 12662
Running
dagit --suppress-warnings
Copy code
~/elementl/dagster master 10s
internal-3.8.7 ❯ dagit --suppress-warnings
Using temporary directory /var/folders/yb/qqcnzws17_v917wn0t26nsfw0000gn/T/tmpocncwrlz for storage. This will be removed when dagit exits.
To persist information across sessions, set the environment variable DAGSTER_HOME to a directory to use.

/Users/rexledesma/elementl/dagster/python_modules/dagster-test/dagster_test/toys/sleepy.py:58: ExperimentalWarning: "graph" is an experimental decorator. 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>.
  @graph(
/Users/rexledesma/elementl/dagster/python_modules/dagster-test/dagster_test/toys/sleepy.py:86: ExperimentalWarning: "to_job" is an experimental function. 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>.
  sleepy_pipeline = sleepy.to_job(
/Users/rexledesma/elementl/dagster/python_modules/dagster/dagster/core/definitions/graph.py:456: ExperimentalWarning: "_config_mapping" is an experimental argument to function "ModeDefinition.__new__". 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>.
  ModeDefinition(
Loading repository...
Serving on <http://127.0.0.1:3000> in process 12763
1
x
You meant you can reproduce?
r
yeah, well clearly
--suppress-warnings
is doing something, but it’s not catching all warnings for some reason
x
will this issue be documented and fixed?
r
x
Thank you!