All checks were successful
Build and Push Docker Images / Build Backend (FastAPI) (push) Successful in 32s
Build and Push Docker Images / Build Frontend (Next.js) (push) Successful in 1m3s
Build and Push Docker Images / Build Integrator (push) Successful in 57s
Build and Push Docker Images / Build Kestra Init (push) Successful in 32s
Build and Push Docker Images / Trigger Portainer Update (push) Successful in 1s
Kestra requires retry.type to be set (e.g. constant, exponential). Also rename delay -> interval which is the correct field for constant retry. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
34 lines
817 B
YAML
34 lines
817 B
YAML
id: ofsted-monthly-update
|
|
namespace: schoolcompare.data
|
|
description: Download and load Ofsted Monthly Management Information CSV
|
|
|
|
triggers:
|
|
- id: monthly-schedule
|
|
type: io.kestra.plugin.core.trigger.Schedule
|
|
cron: "0 2 1 * *" # 1st of each month at 02:00
|
|
|
|
tasks:
|
|
- id: download
|
|
type: io.kestra.plugin.core.http.Request
|
|
uri: http://integrator:8001/run/ofsted?action=download
|
|
method: POST
|
|
allowFailed: false
|
|
timeout: PT10M
|
|
|
|
- id: load
|
|
type: io.kestra.plugin.core.http.Request
|
|
uri: http://integrator:8001/run/ofsted?action=load
|
|
method: POST
|
|
allowFailed: false
|
|
timeout: PT30M
|
|
|
|
errors:
|
|
- id: notify-failure
|
|
type: io.kestra.plugin.core.log.Log
|
|
message: "Ofsted update FAILED: {{ error.message }}"
|
|
|
|
retry:
|
|
type: constant
|
|
maxAttempts: 3
|
|
interval: PT10M
|