Ray's Knowledge Base
Unlock

NullClient must implement scheduler_info for in-process analysis

PitfallVerified 30 Sep 2026Holds project: dfanalyzer
Pitfall. The symptom, what causes it, and the fix that was run and seen to work.

Symptom#

A small-trace run in in-process mode fails with AttributeError: 'NullClient' object has no attribute 'scheduler_info'.

Cause#

The utils integration calls client.scheduler_info() for worker information and local staging. dfanalyzer's NullClient lacked that method. Tests using a real Dask cluster did not exercise this path.

Fix#

Implement scheduler_info() in python/dftracer/analyzer/cluster.py so NullClient reports no workers. Exercise in-process analysis as well as real-cluster analysis.

Evidence#

Transcript 0c8b1fa03a reports the failure on copied laghos traces with the develop checkouts. After adding the method, the report completed and cluster/read-path tests passed. This is separate from the empty-table str-minus-str error. The extract does not establish that the local fix was committed.

Also found by searching

  • AttributeError: 'NullClient' object has no attribute 'scheduler_info'
  • dfanalyzer in-process mode crashes on a small trace while real dask cluster runs work
  • how do I run dfanalyzer analysis without a Dask cluster when the utils integration asks for worker info?
  • dask client scheduler_info missing on dummy client in local mode, python/dftracer/analyzer/cluster.py
  • dfanalyzer in-process mode small trace crashes in utils integration
  • how to fix dfanalyzer analysis without a Dask cluster failing on scheduler_info?
  • NullClient python/dftracer/analyzer/cluster.py missing method laghos traces in-process