Skip to content

restructure PR 2: move cron/ → hermes_agent/cron/ #14587

@alt-glitch

Description

@alt-glitch

Parent: #14182
Depends on: #14586 (PR 1)

Goal

Move cron/ into hermes_agent/cron/. Small package (3 files), 15 external callers concentrated in 4 files.

What moves

Current Path New Path
cron/__init__.py hermes_agent/cron/__init__.py
cron/scheduler.py hermes_agent/cron/scheduler.py
cron/jobs.py hermes_agent/cron/jobs.py

Import rewrites

Internal: cron.*hermes_agent.cron.*

External callers (15 refs in 4 files):

  • tools/cronjob_tools.py (1 ref)
  • hermes_cli/cron.py (12 refs)
  • gateway/run.py (1 ref)
  • gateway/platforms/api_server.py (1 ref)

Test files: ~81 import refs across tests/cron/ (~7 test files)

pyproject.toml changes

  • REMOVE cron from packages.find include

Verification

rg "from cron[\. ]" --type py       # should return 0
rg "import cron\b" --type py        # should return 0
pytest

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Low — cosmetic, nice to havecomp/cronCron scheduler and job managementtype/refactorCode restructuring, no behavior change

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions