31 lines
777 B
YAML
31 lines
777 B
YAML
|
|
id: parent-view-monthly-check
|
||
|
|
namespace: schoolcompare.data
|
||
|
|
description: Download and load Ofsted Parent View open data (released ~3x/year)
|
||
|
|
|
||
|
|
triggers:
|
||
|
|
- id: monthly-schedule
|
||
|
|
type: io.kestra.plugin.core.trigger.Schedule
|
||
|
|
cron: "0 3 1 * *" # 1st of each month at 03:00
|
||
|
|
|
||
|
|
tasks:
|
||
|
|
- id: download
|
||
|
|
type: io.kestra.plugin.core.http.Request
|
||
|
|
uri: http://integrator:8001/run/parent_view?action=download
|
||
|
|
method: POST
|
||
|
|
timeout: PT10M
|
||
|
|
|
||
|
|
- id: load
|
||
|
|
type: io.kestra.plugin.core.http.Request
|
||
|
|
uri: http://integrator:8001/run/parent_view?action=load
|
||
|
|
method: POST
|
||
|
|
timeout: PT20M
|
||
|
|
|
||
|
|
errors:
|
||
|
|
- id: notify-failure
|
||
|
|
type: io.kestra.plugin.core.log.Log
|
||
|
|
message: "Parent View update FAILED: {{ error.message }}"
|
||
|
|
|
||
|
|
retry:
|
||
|
|
maxAttempts: 3
|
||
|
|
delay: PT10M
|