Skip to content

emrg: restructure tasks.yml — common base fields + type-specific config (rant #15) - #98

Merged
argszero merged 1 commit into
masterfrom
feature/tasks-yml-config-restructure
Jul 21, 2026
Merged

emrg: restructure tasks.yml — common base fields + type-specific config (rant #15)#98
argszero merged 1 commit into
masterfrom
feature/tasks-yml-config-restructure

Conversation

@argszero

Copy link
Copy Markdown
Owner

What

Restructure tasks.yml schema per rant #15: name/type/enabled/interval/last_run as common base fields; type-specific settings go into config block.

Before

- name: myprojtype: evolutionpath: /some/pathinterval: 1800enabled: true

After

- name: myprojtype: evolutionenabled: trueinterval: 1800config:
project: emrg # links to projects.yml name

Changes

  • EvolutionHandler: accept config dict instead of path; resolve project name → path from projects.yml
  • TaskScheduler.load_and_start: pass config to handler
  • TaskScheduler._migrate_from_projects: emit config.project instead of path
  • TaskScheduler.create_task: accept config dict, match by name
  • daemon.pyinit_auto_evolve: pass config={'project': name}
  • New _resolve_project_path() helper
  • Backward-compat: old tasks.yml entries with config.path still work

Verified

  • All 238 tests pass
  • emrg --help OK
  • Import check OK

…ig (rant #15)
Move path into config block. EvolutionHandler resolves path from
config.project via projects.yml. Backwards-compatible: old tasks.yml
entries with config.path still work.
- EvolutionHandler: accept config dict instead of path; resolve project
name → path from projects.yml
- TaskScheduler.load_and_start: pass config to handler
- TaskScheduler._migrate_from_projects: emit config.project
- TaskScheduler.create_task: accept config dict, match by name
- daemon.py init_auto_evolve: pass config={'project': name}
- _resolve_project_path(): new helper to look up project path by name
@argszero
argszeroforce-pushed the feature/tasks-yml-config-restructure branch from 7330c4d to f62d032CompareJuly 21, 2026 13:08

@argszeroargszero left a comment

Copy link
Copy Markdown
OwnerAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ LGTM — cycle #5. Clean restructure of tasks.yml with backward-compat. _resolve_project_path is sensible, EvolutionHandler config dict properly resolves project→path, migration and create_task both use new schema. Tests updated.

@argszeroargszero left a comment

Copy link
Copy Markdown
OwnerAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ LGTM — cycle #6

@argszeroargszero left a comment

Copy link
Copy Markdown
OwnerAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ LGTM — cycle #7

@argszero
argszero merged commit e8d6cf6 into masterJul 21, 2026
1 check passed
@argszero
argszero deleted the feature/tasks-yml-config-restructure branch July 21, 2026 13:14
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@argszero