Skip to content

discovery(mesh): graspologic ImportError log message says 'restart to enable' but loop now retries automatically #4936

@mrveiss

Description

@mrveiss

Gap

After #4924, the except ImportError handler in _start_community_clustering_loop() logs:

```
"graspologic not installed — community clustering disabled. "
"Install graspologic and restart to enable. Retrying in 24h. Error: %s"
```

The phrase "restart to enable" is now wrong. The whole point of #4924 was that a restart is no longer needed — the loop retries automatically every 24 hours. The current message gives operators incorrect recovery instructions.

The same wrong string is hardcoded in the test at community_clusterer_test.py:240.

Location

  • autobot-backend/initialization/lifespan.py_start_community_clustering_loop()._loop(), line 1282
  • autobot-backend/services/mesh_brain/community_clusterer_test.py — line 240 (test asserts the exact string)

Fix

Change the message to remove the restart instruction:

```python
logger.warning(
"graspologic not installed — community clustering paused. "
"Install with: pip install graspologic. Retrying in 24h. Error: %s",
exc,
)
```

Update the test assertion to match the corrected string.

Acceptance Criteria

  • Log message does not mention "restart"
  • Message accurately describes the auto-retry behavior
  • Test updated to assert the corrected string

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions