Skip to content

ConfigurationError: Misconfigured setting 'package_cache_clean_limit': -1 should be instance of <class 'float'> #1802

Open
@ruzette

Description

@ruzette

rezconfig.py throws when disabling package_cache_clean_limit to -1 as noted in the the docs inside rezconfig file.

This is written in the docs:

# If > 0, spend up to this many seconds cleaning the cache every time the cache
# is updated. This is a way to keep the cache size under control without having
# to periodically run :option:`rez-pkg-cache --clean`. Set to -1 to disable.
package_cache_clean_limit = 0.5

Setting package_cache_clean_limit = -1 throws:

16:00:38 ERROR    ConfigurationError: Misconfigured setting 'package_cache_clean_limit': -1 should be instance of <class 'float'>

Environment

  • OS Rocky Linux 8.9
  • Rez version 2.113
  • Rez python version: 3.11

To Reproduce

  1. Set package_cache_clean_limit = -1 as described in the doc
  2. Run rez-config

Expected behavior
It will not throw the error: 16:00:38 ERROR ConfigurationError: Misconfigured setting 'package_cache_clean_limit': -1 should be instance of <class 'float'> and disable the package_cache_clean_limit

Actual behavior
It throws an error:
16:00:38 ERROR ConfigurationError: Misconfigured setting 'package_cache_clean_limit': -1 should be instance of <class 'float'>

Regression
If applicable, state the last known rez version where the bug did not occur (delete this section if N/A).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions