Skip to content

fix(cron): avoid third-party utils import collision (#82069) - #82097

Open
kyssta-exe wants to merge 1 commit into
NousResearch:mainfrom
kyssta-exe:auto-fix/issue-82069
Open

fix(cron): avoid third-party utils import collision (#82069)#82097
kyssta-exe wants to merge 1 commit into
NousResearch:mainfrom
kyssta-exe:auto-fix/issue-82069

Conversation

@kyssta-exe

Copy link
Copy Markdown
Contributor

Summary

  • avoid importing an unrelated third-party utils module when cron jobs are loaded from a mounted Hermes source tree
  • load Hermes' packaged utility implementation by its path and add a regression test for the collision

Closes #82069

Test plan

  • python3 -m pytest -q tests/cron/test_cron_utils_import.py
  • python3 -m py_compile cron/jobs.py cron/_hermes_utils.py tests/cron/test_cron_utils_import.py
  • Existing tests/cron/test_jobs.py has unrelated pre-existing failures under the current test environment.

@alt-glitch alt-glitch added type/bug Something isn't working comp/cron Cron scheduler and job management area/docker Docker image, Compose, packaging P2 Medium — degraded but workaround exists labels Aug 9, 2026
@szmania

szmania commented Aug 9, 2026

Copy link
Copy Markdown

wow this was quick! I'll give it a spin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/docker Docker image, Compose, packaging comp/cron Cron scheduler and job management P2 Medium — degraded but workaround exists type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: [webui] ERROR GET /api/crons ImportError: cannot import name 'atomic_write_text' from 'utils' (/app/venv/lib/python3.12/site-packages/utils.py)

3 participants