mottosso / bleeding-rez

Rez - Reproducible software environments for Windows, Linux and MacOS
GNU Lesser General Public License v3.0
72 stars 10 forks source link

rez memcache --flush #44

Closed mottosso closed 5 years ago

mottosso commented 5 years ago

Currently throws an error on Windows.

$ rez memcache --flush
  File "C:\Python27\Lib\runpy.py", line 174, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "C:\Python27\Lib\runpy.py", line 72, in _run_code
    exec code in run_globals
  File "C:\rez\scripts\rez.exe\__main__.py", line 9, in <module>
    sys.exit(run())
  File "C:\rez\Lib\site-packages\rez\cli\_main.py", line 239, in run
    returncode = run_cmd()
    return opts.func(opts, opts.parser, extra_arg_groups)
    memcache_client.flush(hard=True)
  File "C:\rez\Lib\site-packages\rez\utils\memcached.py", line 141, in flush
    self.reset_stats()
  File "C:\rez\Lib\site-packages\rez\utils\memcached.py", line 159, in reset_stats
    self._get_stats("reset")
  File "C:\rez\Lib\site-packages\rez\utils\memcached.py", line 171, in _get_stats
    return self.client.get_stats(stat_args=stat_args)
  File "C:\rez\Lib\site-packages\rez\vendor\memcache\memcache.py", line 331, in get_stats
    serverData[stats[1]] = stats[2]
IndexError: list index out of range