Files
admin/host-stacks/local/sched-pipelines/tasks.json
vitya 5d57f49e80 ops: schedd 0.7.0 (cancelUrl-канал), dry-run мок-publish оба зелёные, ТЗ worker-cancel-url
- schedd.Dockerfile: daemon 0.6.0 → 0.7.0 (cancel-канал: cancelUrl в accepted-envelope)
- tasks.json: publish+githubDistro с dryRun:true у обеих тасок (мок-publish dry, ноль мутаций)
- compose: DRY_RUN=1 безопасный дефолт; ozon state персистентен (bind-mount, noop работает)
- тесты: мок-publish dry — yandex 13/13, ozon 10/10, GitHub/Gitea/verdaccio чисто
- баг cancel воспроизведён (воркер продолжает после cancel) → ТЗ worker-cancel-url обеим командам
2026-08-20 23:49:51 +03:00

60 lines
2.0 KiB
JSON

{
"tasks": [
{
"name": "ozon-seller-pipeline",
"runner": "http",
"schedules": [{ "cron": "0 2 * * *" }],
"config": {
"url": "http://ozon-seller-builder:8080/run?async=1",
"method": "POST",
"envelope": true,
"auth": { "apiKey": "__SCHED_API_KEY__" },
"data": {
"stages": ["hash", "patch", "diff", "classify", "generate", "fix", "build", "postman", "state", "publish"],
"dryRun": true
}
}
},
{
"name": "yandex-market-pipeline",
"runner": "http",
"schedules": [{ "cron": "30 2 * * *" }],
"config": {
"handler": "pipeline",
"timeoutMs": 120000,
"url": "http://ym-client-builder:8080/run",
"method": "POST",
"envelope": true,
"auth": { "apiKey": "__SCHED_API_KEY__" },
"data": {
"stages": ["fetch", "detect", "diff", "classify", "patch", "generate", "fix", "build", "test", "postmanGenerate", "postman", "publish", "githubDistro"],
"dryRun": true,
"repo": "https://github.com/yandex-market/yandex-market-partner-api",
"branch": "main",
"workDir": "/app/data/clone",
"snapshotsDir": "data/openapi/snapshots",
"statePath": "data/state.json",
"outputDir": "data/output/typescript",
"testsDir": "tests/client",
"registry": "__PUBLISH_REGISTRY__",
"remoteBase": "__PUBLISH_REMOTE_BASE__",
"githubApiBase": "__PUBLISH_GH_API_BASE__",
"notify": {
"ntfy": { "url": "http://ntfy", "topic": "ym-client-builder" },
"email": { "to": "vitya.kuznetsov@gmail.com", "endpoint": "http://unisender-mock:8080/ru/transactional/api/v1/email/send.json", "on": ["published", "report", "failed"] }
}
}
}
}
],
"alerts": {
"on": ["failed"],
"onMissed": true,
"webhook": {
"url": "http://alert-bridge:9090/webhook",
"secret": "__WEBHOOK_SECRET__",
"timeoutMs": 10000
}
}
}