26 lines
684 B
YAML
26 lines
684 B
YAML
|
|
id: finance-annual-update
|
||
|
|
namespace: schoolcompare.data
|
||
|
|
description: Fetch FBIT financial benchmarking data from DfE API for all schools
|
||
|
|
|
||
|
|
triggers:
|
||
|
|
- id: annual-schedule
|
||
|
|
type: io.kestra.plugin.core.trigger.Schedule
|
||
|
|
cron: "0 4 1 12 *" # 1 December annually at 04:00
|
||
|
|
|
||
|
|
tasks:
|
||
|
|
- id: download
|
||
|
|
type: io.kestra.plugin.core.http.Request
|
||
|
|
uri: http://integrator:8001/run/finance?action=download
|
||
|
|
method: POST
|
||
|
|
timeout: PT120M # Fetches per-school from API — ~20k schools
|
||
|
|
|
||
|
|
- id: load
|
||
|
|
type: io.kestra.plugin.core.http.Request
|
||
|
|
uri: http://integrator:8001/run/finance?action=load
|
||
|
|
method: POST
|
||
|
|
timeout: PT30M
|
||
|
|
|
||
|
|
retry:
|
||
|
|
maxAttempts: 2
|
||
|
|
delay: PT30M
|