26 lines
632 B
YAML
26 lines
632 B
YAML
|
|
id: idaci-annual-check
|
||
|
|
namespace: schoolcompare.data
|
||
|
|
description: Download IoD2019 IDACI file and compute deprivation scores for all schools
|
||
|
|
|
||
|
|
triggers:
|
||
|
|
- id: annual-schedule
|
||
|
|
type: io.kestra.plugin.core.trigger.Schedule
|
||
|
|
cron: "0 5 1 1 *" # 1 January annually at 05:00
|
||
|
|
|
||
|
|
tasks:
|
||
|
|
- id: download
|
||
|
|
type: io.kestra.plugin.core.http.Request
|
||
|
|
uri: http://integrator:8001/run/idaci?action=download
|
||
|
|
method: POST
|
||
|
|
timeout: PT10M
|
||
|
|
|
||
|
|
- id: load
|
||
|
|
type: io.kestra.plugin.core.http.Request
|
||
|
|
uri: http://integrator:8001/run/idaci?action=load
|
||
|
|
method: POST
|
||
|
|
timeout: PT60M
|
||
|
|
|
||
|
|
retry:
|
||
|
|
maxAttempts: 2
|
||
|
|
delay: PT30M
|