mara / mara-pipelines

A lightweight opinionated ETL framework, halfway between plain scripts and Apache Airflow
MIT License
2.07k stars 100 forks source link

Add workaround for system statistics on wsl1 #19

Closed jankatins closed 4 years ago

jankatins commented 4 years ago

Some counters on WSL1 return None because psutil thinks it's linux, but the linux kernel API is not implemented and fails.

This lets it always return 0 for all attributes on that counter and lets at least CPU show up.