38 lines
1.7 KiB
Markdown
38 lines
1.7 KiB
Markdown
# Repository Mesh Scheduler Specs
|
|
|
|
## TudoParaIA-RepositoryMeshSync
|
|
|
|
- kind: `windows_task`
|
|
- interval_minutes: `5`
|
|
- working_directory: `G:\_codex-git\tudo-para-ia-mais-humana`
|
|
- log_path: `G:\_codex-git\tudo-para-ia-mais-humana\dados\repository-mesh-runtime.jsonl`
|
|
|
|
Install:
|
|
- `$Action = New-ScheduledTaskAction -Execute 'C:\Users\Ami\.cache\codex-runtimes\codex-primary-runtime\dependencies\python\python.exe' -Argument "-m mais_humana.cli repo-mesh --ecosystem-root 'G:\_codex-git' --project-root 'G:\_codex-git\tudo-para-ia-mais-humana' --fetch"`
|
|
- `$Trigger = New-ScheduledTaskTrigger -Once -At (Get-Date) -RepetitionInterval (New-TimeSpan -Minutes 5)`
|
|
- `Register-ScheduledTask -TaskName 'TudoParaIA-RepositoryMeshSync' -Action $Action -Trigger $Trigger`
|
|
|
|
Uninstall:
|
|
- `Unregister-ScheduledTask -TaskName 'TudoParaIA-RepositoryMeshSync' -Confirm:$false`
|
|
|
|
Notas:
|
|
- usar credencial Git do usuario operacional
|
|
- nao usar plugin Cloudflare como via de sincronizacao
|
|
|
|
## tudo-para-ia-repository-mesh-sync
|
|
|
|
- kind: `cron`
|
|
- interval_minutes: `5`
|
|
- working_directory: `G:\_codex-git\tudo-para-ia-mais-humana`
|
|
- log_path: `G:\_codex-git\tudo-para-ia-mais-humana\dados\repository-mesh-cron.log`
|
|
|
|
Install:
|
|
- `(crontab -l; echo "*/5 * * * * cd 'G:\_codex-git\tudo-para-ia-mais-humana' && PYTHONPATH='G:\_codex-git\tudo-para-ia-mais-humana\src' 'python' -m mais_humana.cli repo-mesh --ecosystem-root 'G:\_codex-git' --project-root 'G:\_codex-git\tudo-para-ia-mais-humana' --fetch >> 'G:\_codex-git\tudo-para-ia-mais-humana\dados\repository-mesh-cron.log' 2>&1") | crontab -`
|
|
|
|
Uninstall:
|
|
- `crontab -l | grep -v 'repository-mesh' | crontab -`
|
|
|
|
Notas:
|
|
- executar em cada host Linux da malha
|
|
- bloquear se houver dirty tree ou divergencia
|