- schedd.Dockerfile: daemon 0.4.2 → 0.5.0 (фикс envelope-дыра/statusUrl/poll-retry/run-deadline) - tasks.json: timeoutMs -1 на обе пайплайн-таски (никогда не авто-терминировать) - docker-compose: ozon /app/data + /app/state.json bind-mount на хост (как ym) - data-ozon/state.json: baked-снапшот state из образа
57 lines
1.8 KiB
JSON
57 lines
1.8 KiB
JSON
{
|
|
"tasks": [
|
|
{
|
|
"name": "ozon-seller-pipeline",
|
|
"runner": "http",
|
|
"timeoutMs": -1,
|
|
"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"]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "yandex-market-pipeline",
|
|
"runner": "http",
|
|
"timeoutMs": -1,
|
|
"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"],
|
|
"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",
|
|
"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
|
|
}
|
|
}
|
|
}
|